Hard to say without knowing the rest of your codebase, but here are some gotchas that have caught me:
- Incorrect test isolation, such that the user on that test connection is signed in (can happen in a number of ways if you’re trying to be too clever)
- You’ve overridden some behavior in
ensure_authenticationthat isn’t protecting the page correctly. - Defining the route higher up without authentication.
Have you verified it works outside the test?






















