Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress hangs on retry attempt #30589

Open
japoorv opened this issue Nov 8, 2024 · 3 comments
Open

Cypress hangs on retry attempt #30589

japoorv opened this issue Nov 8, 2024 · 3 comments
Labels
stage: needs information Not enough info to reproduce the issue

Comments

@japoorv
Copy link

japoorv commented Nov 8, 2024

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

@jennifer-shehane
Copy link
Member

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

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Nov 8, 2024
@japoorv
Copy link
Author

japoorv commented Nov 9, 2024

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
Copy link
Author

japoorv commented Nov 12, 2024

Bumping this up, in case it gets missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants