You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('redirects static image',()=>{// instead of serving an image from a fixture// we can redirect the request for the image// to another routecy.route2({method: 'GET',url: '/images/tiger.jpg',},(req)=>{// /__root/* is a special URL that can serve a file from the// project's root. Normally this is used during bundling// but here we are using it to serve another imagereq.redirect('/__root/cypress/fixtures/roo.jpg')})cy.visit('/pics.html')})
Error screenshot
Last stack frame
request is undefined
Previous stack frame
checks if request is undefined and calls sendContinuationFrame (where it crashes trying to set request)
The text was updated successfully, but these errors were encountered:
The code for this is done in cypress-io/cypress#8965, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
Cypress v5.4.0 but might happen earlier
Reproducible example in https://github.com/cypress-io/cypress-example-recipes
Spec examples/stubbing-spying__route2/cypress/integration/image-spec.js
Test
Error screenshot
Last stack frame
request
is undefinedPrevious stack frame
request
is undefined and callssendContinuationFrame
(where it crashes trying to setrequest
)The text was updated successfully, but these errors were encountered: