From b11099f59c98b9852a63fe06162463ef5b717f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sun, 25 Jun 2023 11:50:40 +0200 Subject: [PATCH] ci(cypress): Clear page to avoid issues when switching sessions while requests are still being fired MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/support/commands.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index a6470cc15cd..9d1276d7edd 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -36,6 +36,9 @@ addCommands() // and also to determine paths, urls and the like. let auth Cypress.Commands.overwrite('login', (login, user) => { + cy.window().then((win) => { + win.location.href = 'about:blank' + }) auth = { user: user.userId, password: user.password } login(user) })