cypress-documentation
cypress-documentation copied to clipboard
`req.destroy` is not supported in webkit, but not mentioned in documenation
Description
When I use req.destroy
on the Webkit browser it should work (or not depending on documentation)
URL of Issue(s)
https://docs.cypress.io/api/commands/intercept#Controlling-the-response
Steps to replicate
- Go to 'Controlling the response documentation page'
- There is not a mention that some of these will not work with experimental webkit enabled.
Specifically in my use case, req.destroy()
is not supported, but it does not mention in the documentation that it isn't supported.
cy.intercept(host, {
statusCode: 404,
body: '404 Not Found!',
headers: {
'x-not-found': 'true',
},
});
This is what i'm using instead to simulate the response not to invoke.
Browser
webkit
Device
- [X] PC
- [ ] Mac
- [ ] iPhone
- [ ] iPad
- [ ] Android Phone
- [ ] Android Tablet
Additional Information
No response