From 0d90a786e441d44846f4c50caf9dc1d89f971f24 Mon Sep 17 00:00:00 2001 From: nikolajlauridsen Date: Tue, 5 Oct 2021 14:15:43 +0200 Subject: [PATCH] Try and fix acceptance tests take 1000 --- .../cypress/integration/HelpPanel/systemInformation.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/HelpPanel/systemInformation.ts b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/HelpPanel/systemInformation.ts index a21a7073ed..0709e8925a 100644 --- a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/HelpPanel/systemInformation.ts +++ b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/HelpPanel/systemInformation.ts @@ -17,13 +17,15 @@ context('System Information', () => { it('Check System Info Displays', () => { openSystemInformation(); cy.get('.table').find('tr').should('have.length', 10); - + cy.contains('Current Culture').parent().should('contain', 'en-US'); + cy.contains('Current UI Culture').parent().should('contain', 'en-US'); }); context('Language switching', () => { afterEach(() => { - cy.get('[data-element="global-user"]', {timeout: 10000}).click(); + cy.reload() + cy.get('[data-element="global-user"]', {timeout: 10000}).should('be.visible', {timeout: 10000}).click(); cy.get('[alias="editUser"]').click(); cy.get('.input-block-level', {timeout: 10000}).last().select('string:en-US', {timeout: 10000, force: true}); cy.umbracoButtonByLabelKey('buttons_save').click({force: true}); @@ -33,10 +35,6 @@ context('System Information', () => { it('Checks language displays correctly after switching', () => { //Navigate to edit user and change language - openSystemInformation(); - cy.contains('Current Culture').parent().should('contain', 'en-US'); - cy.contains('Current UI Culture').parent().should('contain', 'en-US'); - cy.get('.umb-button__content').click(); cy.get('[data-element="global-user"]').click(); cy.get('[alias="editUser"]').click(); cy.get('[name="culture"]').select('string:da-DK', {timeout: 10000, force: true});