-
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
Interceptor subject not passed to alias flakiness in Cypress 12 #25966
Comments
@apexskier, i threw together a repo to reproduce this and ran the intercept command 1000, but was unable to recreate. What am I missing? |
Right now there doesn't seem to be enough information to reproduce the problem on our end. We'll have to close this issue until we can reproduce it. This does not mean that your issue is not happening - it just means that we do not have a path to move forward. Please open comment on this issue with a reproducible example, and we can look into it further. Here are some tips for providing a Short, Self Contained, Correct, Example and our own Troubleshooting Cypress guide. |
I don't seem to reproduce this in cypress 12.8 (or at least now) |
@apexskier did you manage to overcome this issue? I get the same when using multiple cy.intercept() |
It stopped happening for me without any known cause. |
Having this same issue on 13.6.3. Not sure what the cause could be. I also use a lot of intercept calls with aliases. |
Having the same issue. |
@craigmiller160 @inder128 Please create a new issue with a reproducible example |
Hello. I have just experienced this as I am trying to setup a gitlab pipeline. It is definitely a real issue. The best I can do is provide my mochawesome report from my tests. |
Current behavior
It appears Cypress isn't seeing the interceptor passed from the
cy.intercept
chainable sometimes. I'm getting the error:...
But my code is
cy.intercept("...", ...).as("randomizeIP")
.(In my screenshot I have type as set to "static", but I've seen it with and without that, the docs say it has no effect on interceptors)
Desired behavior
Interceptor subject should always be passed to
.as
and this should be stable as it was in V10Test code to reproduce
I've seen reproductions <75% of the time.
Cypress Version
12.7.0
Node version
v18.12.1
Operating System
macOS 12.3.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: