I'm using Cypress for e2e tests on my Firebase web app, and I want test runs to always start fresh from an non-authenticated state.
How do I prevent Firebase Auth sessions from persisting across e2e test runs?
Currently, I have a logout()
function call at the end of the tests. But if a test fails before that point, logout()
often doesn't get called, and I have to manually log out before the next test run.