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

Update intercept.mdx pattern matching example

Open kevin-zou opened this issue 2 years ago • 2 comments

The second example for pattern matching in the docs for cy.intercept() doesn't actually use regex for the method field. When using this example in a test, the intended behaviour (PUT or PATCH requests being intercepted) doesn't happen.

This PR makes a slight alteration to the docs to provide an accurate and working example. From a quick glance this seems to be the only occurrence in this file, but happy to have others added if found!

kevin-zou avatar Mar 30 '23 19:03 kevin-zou

Deploy request for cypress-docs pending review.

Visit the deploys page to approve it

Name Link
Latest commit def661a1560d3c313f084a8412568cae06acd0ee

netlify[bot] avatar Mar 30 '23 19:03 netlify[bot]

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 30 '23 19:03 CLAassistant