https://cypress.io logo
I had a similar issue and I believe the fix was to...
# e2e-testing
f
I had a similar issue and I believe the fix was to make sure you persist whatever cookie your sign-in behavior creates in a beforeEach block after the initial visit. That is if you are visiting urls in different it() blocks. If a single test, my guess would be to make sure to intercept the redirect call and pass creds in the redirect as well. Most likely the creds you feed in the initial visit, are not being sent when navigating back/redirect / or could be the cookie thing again in this scenario as well. Hope this helps!