test fails to load page in headless chrome, but succeeds headed #22947
Unanswered
constantlyk
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Essentially, a very simple test generally succeeds with Chrome in the test runner or when using the
--headed
flag in the command line, and also succeeds with headless or headed Electron, but fails to load the page under test when in headless Chrome.I've listed the replication steps here, as well as some notes and debug logs:
https://github.com/constantlyk/cypress-program-guide-demo
I also opened a thread in discord, which may have some more information. In particular, I've written in that thread that the original version of this test did actually use a
cy.intercept()
on the graphql request made by the page, and confirmed that the request is never made (cy.wait()
times out); I changed the demo version of the test to check a DOM element instead, but the result is the same:https://discord.com/channels/755913899261296641/1001162684181528676
Previous discussions which seem somewhat related, though I can't tell from the details given if they are in fact the same issue:
Beta Was this translation helpful? Give feedback.
All reactions