cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Cypress hangs on retry attempt

Open japoorv opened this issue 1 year ago • 4 comments

Current behavior

Cypress hangs on retry attempt Screenshot 2024-11-08 at 13 26 59

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 avatar Nov 08 '24 13:11 japoorv

@japoorv Does this happen during cypress open? What do you visually see when that is run?

jennifer-shehane avatar Nov 08 '24 16:11 jennifer-shehane

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.

japoorv avatar Nov 09 '24 00:11 japoorv

Bumping this up, in case it gets missed.

japoorv avatar Nov 12 '24 14:11 japoorv

Hi @japoorv. Do you have any debug logs from when this happens?

ryanthemanuel avatar Nov 21 '24 21:11 ryanthemanuel

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.

cypress-app-bot avatar May 21 '25 02:05 cypress-app-bot

This issue has been closed due to inactivity.

cypress-app-bot avatar Jun 04 '25 02:06 cypress-app-bot