cy.setCookie()
setting the requested cookie in Firefox working locally but not in Docker
#17539
Unanswered
derf-github
asked this question in
Docker
Replies: 1 comment 1 reply
-
Edit: Created #20015 This is happening to me also. Seems to me like a perfectly fine use case and effectively prevents our CI from running any Firefox jobs.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using Cypress 7.5.0 and I run my E2E tests in a Docker container based on cypress/browsers:node12.16.1-chrome80-ff73.
The tests have been running on Chrome for a while now. When trying to execute them on Firefox, I've got the following error :
CypressError:
cy.setCookie()had an unexpected error setting the requested cookie in Firefox.
When I run the tests locally (outside the Docker container) and use the version of Firefox (90.0) installed on my computer (Ubuntu 18.04), the same code works fine.
In order to authenticate in my application, I retrieve the following cookies :
and then I set them using :
DEBUG logs when executing in Docker
DEBUG logs when executing locally
The logs keep on going and the tests execute successfully.
I can't get my head around why it works when run locally and fails when run in a Docker container.
Do you have any idea on what I'm missing here?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions