https://cypress.io logo
#help
Title
# help
n

narrow-gigabyte-35813

05/31/2022, 4:15 PM
Hello there! I have a small question, please. I am using localStorage and Cypress cookies when I run the tests on the browser "cypress open" it's working fine. But it fails when I run them through the terminal. So does anyone has any idea? If it's related to "localStorage" or "Cookies" should i use something else? Thanks in advance.
p

powerful-gigabyte-69168

05/31/2022, 7:22 PM
More often than not issues running tests headlessly are caused by race conditions that don't come up in UI mode because the tests are slower
often it's something like making an API call then asserting something about data without a retry built in
3 Views