While executing Cypress tests via the command-line interface, there are instances where the local server fails to load for specific tests #27601
Unanswered
SanghamitraBhowmick1993
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.
-
Occasionally, a few tests encounter failure in an unpredictable manner, and during these times, the local server does not successfully load, resulting in a blank screen instead of the expected website content. This issue materializes randomly as tests progress among a set of 50. It remains uncertain whether this issue originates within the application itself or if it is attributed to a glitch within Cypress.
While investigating, I inspected the cloud watch logs for the application, which revealed that resource utilization remained within normal limits, effectively ruling out space constraints at the application level as well as any potential HTTP/API call disruptions. The Cypress version utilized is 12.16.0, with Chrome 116 operating in headless mode, and the Node version is v16.20.0.
To address the issue, I experimented with changing the server address to 127.0.0.1:4200 instead of the usual http://localhost:4200/. However, this modification resulted in test failures due to unanticipated complications.
Beta Was this translation helpful? Give feedback.
All reactions