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
cy.route2 times out waiting for image load #8934
Comments
Check describe('route2', () => {
it.only('spies on loading a static image', () => {
cy.route2('/images').as('image')
cy.visit('/pics.html')
// how to check if the /image route was called once?
// @see https://github.com/cypress-io/cypress/issues/8934
cy.wait('@image')
}) Still happening in 5.5.0 |
Sorry, I misunderstood the issue. |
Closing this issue, I can reproduce this, but only if the image is not cached. If it is cached, the server returns a 304 Found, which is the same issue as #8999. |
The code for this is done in cypress-io/cypress#9097, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Cypress v5.4.0 and even #8916
Test in https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/stubbing-spying__route2/cypress/integration/image-spec.js#L4
The image request happens, but the test fails it. Notice that the routes tab shows 1 matching request
The text was updated successfully, but these errors were encountered: