-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Test for cy.click() loads many links #1388
Comments
Hello! Thanks for opening an issue. Unfortunately it's not clear, and there's not enough information in this issue for us to investigate if and what the bug may be. For instance - it's unclear what you mean by "load many links". The screenshot provided shows the URL changing several times, but its unclear what the expected and correct behavior would be. For us to look into this, we'd have to have a reproducible repo and a clear understanding of what Cypress is supposed to be doing. It looks as if you're trying to log in, but I can't be sure that's what it is. |
Hmmm I just noticed that this is your 2nd test. I am going to guess here the problem is that you are building up state between your tests - that you are logging in the first test, and then running the second test without logging in. Cypress will automatically clear sessions in between tests to prevent tests from building up state. There are API's to preserve cookies to prevent this - but it's an anti pattern. Here's a couple links to the docs that explain all of this - and a much large issue that explains what we need to do better to communicate this. |
Is this a Feature or Bug?
Bug
Current behavior:
cy.get('a[href="/services/all/"]').first().click()
load many linksDesired behavior:
cy.get('a[href="/services/all/"]').first().click()
load one linkAdditional Info (images, stack traces, etc)
The text was updated successfully, but these errors were encountered: