Skip to content
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

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

Open
1 of 6 tasks
rforster-dev opened this issue Jan 4, 2024 · 0 comments
Open
1 of 6 tasks

Comments

@rforster-dev
Copy link

rforster-dev commented Jan 4, 2024

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

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant