Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ci(cypress): Clear page to avoid issues when switching sessions while…
… requests are still being fired

Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jun 26, 2023
commit 33372da14121c5b6aef1455933a5d8d41f147e9b
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