stability wait

Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
This commit is contained in:
Nikolaj Geisle
2021-10-05 11:37:18 +02:00
parent e3ff40be50
commit fa6f96d6fa

View File

@@ -1,7 +1,8 @@
/// <reference types="Cypress" />
function openSystemInformation(){
cy.get('[data-element="global-help"]').click();
//We have to wait for page to load, if the site is slow
cy.get('[data-element="global-help"]').should('be.visible', {timeout:10000}).click();
cy.get('.umb-help-list-item').last().should('be.visible').click();
cy.get('.umb-drawer-content').scrollTo('bottom', {ensureScrollable : false});
}
@@ -18,7 +19,7 @@ context('System Information', () => {
cy.get('.table').find('tr').should('have.length', 10);
});
context('Language switching', () => {
afterEach(() => {