Cypress.Cookies.defaults({ preserve: }) does not work in github actions #24985
Unanswered
inconduit
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i'm preserving an auth cookie across test files via cypress/support/e2e.js with Cypress.Cookies.defaults({ preserve: })
my first test file does the authentication, visits an auth link it receives via email which sets a cookie on the client via the response.
i preserve that cookie with Cookies.defaults(), it gets sent in the request headers in subsequent tests.
it all works perfectly well when running cypress locally, either in the cypress ui, or in headless mode.
it does not work when running as a github action (cypress-io/github-action@v4). the cookie does not get preserved when the next test file is run.
is there anything i'm missing when running cypress through a github action?
Beta Was this translation helpful? Give feedback.
All reactions