diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index e34a06a31..cd4280578 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -56,6 +56,11 @@ Then('I see the login screen again', () => { cy.location('pathname').should('contain', '/login') }) +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 am still logged in', () => { cy.get('.avatar-menu').click() cy.get('.avatar-menu-popover').contains(users.admin.name)