Reproduction of a test failure experienced in Cypress >= 7 that does not occur in 6.
To reproduce:
pnpm i; pnpm test
-- in the cypress UI, run the sole test (login.spec.ts
). The tests will pass.- Change the cypress version in
tests/package.json
to"7^"
pnpm i; pnpm test
. Runlogin.spec.ts
again -- the tests will fail when, after making a successfulPOST
to/login
, the page reloads to show the user still logged out.
The failure does not reproduce without the Secure
option set in the set-cookie
header -- remove that, and it passes in 7.