Cypress hangs on retry attempt
Current behavior
Cypress hangs on retry attempt
Desired behavior
The tests should fail with all the attempts exhausted
Test code to reproduce
In the below code the getServiceConfigPageUrl() returns a proprietary url which has been redacted, the funny thing is that it reproduces for the proprietary url but not for other urls I have tried :( Though I have been able to verify using headed browser that the url is approachable.
it("should allow user to save configuration with valid value", () => {
cy.intercept({
method: "GET",
url: "https://localhost:9888", //the path doesn't exist hence the below wait should fail
}).as("serviceDetail");
const url = getServiceConfigPageUrl();
cy.visit(url);
//cy.get("body").should("contain", "Service Information");
cy.wait(["@serviceDetail"]).then(() => {
servicePageSpecs(cy);
});
});
Cypress Version
13.15.0
Node version
v18.20.4
Operating System
macOS 14.7.1
Debug Logs
No response
Other
No response
@japoorv Does this happen during cypress open? What do you visually see when that is run?
This happens during cypress run visually it opens the said page and timesout on the waiting and then the browser just reopens and restarts the test rather than continuing in the same window with another attempt.
Bumping this up, in case it gets missed.
Hi @japoorv. Do you have any debug logs from when this happens?
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
This issue has been closed due to inactivity.