From 66b7a6db5e21efa9a8faee5d1ad8bab006003da1 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Fri, 3 Feb 2023 22:07:00 +0100 Subject: [PATCH] scroll to top to ensure that avatar menu is visible before clicking on it --- cypress/integration/common/I_log_out.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/integration/common/I_log_out.js b/cypress/integration/common/I_log_out.js index 51605f17e..2f7b6d848 100644 --- a/cypress/integration/common/I_log_out.js +++ b/cypress/integration/common/I_log_out.js @@ -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(); -}); \ No newline at end of file +});