Skip to content

Commit 33372da

Browse files
committed
ci(cypress): Clear page to avoid issues when switching sessions while requests are still being fired
Signed-off-by: Julius Härtl <[email protected]>
1 parent 6e00967 commit 33372da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cypress/support/commands.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ addCommands()
3636
// and also to determine paths, urls and the like.
3737
let auth
3838
Cypress.Commands.overwrite('login', (login, user) => {
39+
cy.window().then((win) => {
40+
win.location.href = 'about:blank'
41+
})
3942
auth = { user: user.userId, password: user.password }
4043
login(user)
4144
})

0 commit comments

Comments
 (0)