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 after cy.visit() url is not changing #30586

Open
HalilAkduman opened this issue Nov 8, 2024 · 1 comment
Open

Cypress after cy.visit() url is not changing #30586

HalilAkduman opened this issue Nov 8, 2024 · 1 comment
Labels
stage: needs information Not enough info to reproduce the issue

Comments

@HalilAkduman
Copy link

Current behavior

Hi,
I'm testing a monorepo angular application. I have 2 different apps. When i'm trying to navigate in between these apps, url is not changing but the DOM does.

My base url is localhost:4200, and i visited :4201. After visit, url still :4200 but screen showing :4201
image
It is stuck in this state and does not give any error and further tests are not running.

this scenario happens in half of the tests, almost 50% of the time my url changes and the other half it doesn't. It is completly random. Also its occurred visiting in same port.

Note : My app's are large scale apps and running slowly

Desired behavior

After cy.visit() url should change

Test code to reproduce

I cannot provide a test. Beacuse apps are private and i cant reproduce it

Cypress Version

13.15.1

Node version

20.11.0

Operating System

Microsoft Windows [Version 10.0.19045.5011]

Debug Logs

No response

Other

No response

@mschile
Copy link
Contributor

mschile commented Nov 14, 2024

Hi @HalilAkduman 👋, right now there doesn't seem to be enough information to reproduce the problem on our end. Forking Cypress Test Tiny makes sharing a reproducible example easier to share and easier for us to replicate your issue. This method also keeps the reproduction as simple as possible, which helps us eliminate potential causes and noise from the investigation.

You may also want to check out the Cypress Discord Community Discord chat, it can be helpful for debugging or answering questions on how to use Cypress.

@mschile mschile added the stage: needs information Not enough info to reproduce the issue label Nov 14, 2024
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