From 91a3b02260685d0979be48208088f51494d35286 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Wed, 19 Dec 2018 21:14:26 +0100 Subject: [PATCH] Fixed broken tests --- cypress/integration/common/steps.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index e46a21d66..f4c16f03b 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -54,7 +54,7 @@ When('I refresh the page', () => { When('I log out through the menu in the top right corner', () => { cy.get('.avatar-menu').click() - cy.get('.locale-menu-popover') + cy.get('.avatar-menu-popover') .find('a') .contains('Logout') .click() @@ -62,6 +62,7 @@ When('I log out through the menu in the top right corner', () => { Then('I can click on my profile picture in the top right corner', () => { cy.get('.avatar-menu').click() + cy.get('.avatar-menu-popover') }) Then('I can see my name {string} in the dropdown menu', () => { @@ -97,8 +98,12 @@ Then(`There should be a locale cooke set to de`, () => { }) When('I navigate to the administration dashboard', () => { - cy.get('.avatar-menu').click() - cy.get('a').contains('Admin').click() + cy.get('.avatar-menu') + .click() + .wait(50) + cy.get('.avatar-menu-popover') + .contains('Admin') + .click() }) When(`I click on {string}`, (linkOrButton) => {