Skip to content

Commit

Permalink
ci(cypress): Clear page to avoid issues when switching sessions while…
Browse files Browse the repository at this point in the history
… requests are still being fired

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Jun 26, 2023
1 parent 1073fc3 commit b8492e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit b8492e5

Please sign in to comment.