mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
only scroll to top if avatar menu is not visible
This commit is contained in:
parent
8bfe486034
commit
f5c05de974
@ -1,7 +1,12 @@
|
||||
import { When } from "cypress-cucumber-preprocessor/steps";
|
||||
|
||||
When("I log out", () => {
|
||||
cy.scrollTo('top')
|
||||
cy.get(".avatar-menu").then(($menu) => {
|
||||
if (!$menu.is(':visible')){
|
||||
cy.scrollTo("top");
|
||||
cy.wait(500);
|
||||
}
|
||||
})
|
||||
cy.get(".avatar-menu")
|
||||
.click();
|
||||
cy.get(".avatar-menu-popover")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user