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
Intercept matching wrong url when array are used in query #16686
Comments
@cifren It looks like you didn't indicate the 'wrong' url that it is matching on. Can you provide the wrong url that this is matching on that you don't think it should match? Thanks. |
It is the wrong URL http://localhost/api/line?id=5&store[0]=5&store[1]=6 it should match http://localhost/api/line?id=5&store[0]=5&store[1]=9 but not http://localhost/api/line?id=5&store[0]=5&store[1]=6 It match both url |
It's happening in version 8.0.0 |
And I noted as well an issue with that, I usually run it with GUI and if I don't close and open the test instance, the intercept method keeps old version of my code. I need to instanciate a new test window in order to make my code understood by the test. For example, I will write :
I run my test, It won't intercept anything, because it does not exist, it is normal, I wrote something wrong in purpose. I will correct it after seeing my mistake :
It won't work if I don't close and open the window, the hot-reload does not refresh intercept method or something like that. |
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. |
This issue has been closed due to inactivity. |
Current behavior
When trying to intercept this URL
http://localhost/api/line?id=5&store[0]=5&store[1]=6
the commandis matching
Desired behavior
That intercept should not match at all
Test code to reproduce
See above
Versions
Cypress: 7.4.0
Browser: Chrome 90 (headless)
The text was updated successfully, but these errors were encountered: