mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
scroll to top to ensure that avatar menu is visible before clicking on it
This commit is contained in:
parent
18749f48d8
commit
66b7a6db5e
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user