scroll to top to ensure that avatar menu is visible before clicking on it

This commit is contained in:
Moriz Wahl 2023-02-03 22:07:00 +01:00
parent 18749f48d8
commit 66b7a6db5e

View File

@ -1,9 +1,10 @@
import { When } from "cypress-cucumber-preprocessor/steps";
When("I log out", () => {
cy.scrollTo('top')
cy.get(".avatar-menu")
.click();
cy.get(".avatar-menu-popover")
.find('a[href="/logout"]')
.click();
});
});