From 769f88e3923cff30d90eeae4c24609812c3801d4 Mon Sep 17 00:00:00 2001 From: ThomasPause Date: Tue, 15 Sep 2020 08:53:29 +0200 Subject: [PATCH] Continue e2e-tests.See #298. --- cypress/integration/snikUiTest1.js | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/cypress/integration/snikUiTest1.js b/cypress/integration/snikUiTest1.js index b295e94d..014d8862 100644 --- a/cypress/integration/snikUiTest1.js +++ b/cypress/integration/snikUiTest1.js @@ -5,22 +5,15 @@ describe('My First Test', () => it('finds the contents of the menu', () => { cy.visit('./index.html'); - + cy.wait(8000); cy.contains('File').click(); - cy.contains('Filter').click(); - - //cy.contains('Options').click(); - - //cy.contains('Layout').click(); - - //cy.contains('Services').click(); - - //cy.contains('Language').click(); - + cy.contains('Options').click(); + cy.get('.dropdown-menu').contains('Layout').click(); + cy.contains('Services').click(); + cy.contains('Language').click(); + //cy.contains('german').click(); cy.contains('Help').click(); - //cy.contains('Manual').click(); - //cy.url().should('include','/manual.html'); }); it('tests the search field', () => @@ -36,8 +29,6 @@ describe('Golden Layout Test', ()=> { it('open new Tab, rename it and go back to start', () => { - cy.visit('./index.html'); - cy.contains('File').click(); cy.get('.addsign').click(); //cy.wait(2000); cy.get('.dropdown-menu').contains('Layout').click(); @@ -49,7 +40,6 @@ describe('Zoom test', () => { it('zoom in and zoom out in the Gesamtmodell', () => { - cy.visit('./index.html'); //Zoom in cy.get('.plussign') .click()