From d4682a9fff3edd24460cdabc6251777d0eb9c6f2 Mon Sep 17 00:00:00 2001 From: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com> Date: Thu, 4 Nov 2021 10:37:00 +0100 Subject: [PATCH] Move language test to the 'tests' folder (#11527) --- .../integration/Languages/languages.ts | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/Umbraco.Tests.AcceptanceTest/cypress/integration/Languages/languages.ts diff --git a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Languages/languages.ts b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Languages/languages.ts deleted file mode 100644 index 123109816482..000000000000 --- a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Languages/languages.ts +++ /dev/null @@ -1,38 +0,0 @@ -/// -context('Languages', () => { - - beforeEach(() => { - cy.umbracoLogin(Cypress.env('username'), Cypress.env('password'), false); - }); - - it('Deletes language', () => { - // Setup - const language1 = 'da'; - const language2 = 'en-GB'; - cy.umbracoEnsureLanguageNotExists(language1); - cy.umbracoEnsureLanguageNotExists(language2); - cy.umbracoCreateLanguage(language1, true, '1'); - cy.umbracoCreateLanguage(language2, true, '1'); - cy.umbracoSection('settings'); - - // Enter language tree and select the language we just created - cy.umbracoTreeItem('settings', ['Languages']).click(); - - // Assert there are 3 languages - cy.get('tbody > tr').should('have.length', 3); - - // Delete the Danish language - cy.get('tr').contains('Danish').parents('tr').within(() => { - cy.get('umb-button[label-key="general_delete"]').click() - }); - cy.umbracoButtonByLabelKey('contentTypeEditor_yesDelete').click(); - - // Assert there is only 2 language - cy.get('tbody > tr').should('have.length', 3); - - // Cleanup - cy.umbracoEnsureLanguageNotExists(language1); - cy.umbracoEnsureLanguageNotExists(language2); - }); - -}); \ No newline at end of file