cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

`req.destroy` is not supported in webkit, but not mentioned in documenation

Open rforster-dev opened this issue 7 months ago • 0 comments

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

  1. Go to 'Controlling the response documentation page'
  2. 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

rforster-dev avatar Jan 04 '24 14:01 rforster-dev