Replies: 1 comment
-
Cookies are a thing of the browser, not docker container. Without looking at the code it is hard to say, but my guess is that you may run into a problem with one way of how you can solve this is by using cy.window().its('document.cookie').should('contain', yourCookie) the only problem here, is that this will retrieve all browser cookies as a string, so you might need to parse it manually. |
Beta Was this translation helpful? Give feedback.
-
I am running Cypress tests through Jenkins and docker-compose using docker/included:10.10.0 image. Locally all tests work, but on the CI environment, specifically the
cy.getCookie()
command is not retrieving the cookies. I was wondering if there is any consideration when working with tests and cookies through the cypress container. Please find below my docker-compose configuration.Beta Was this translation helpful? Give feedback.
All reactions