Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update intercept.mdx pattern matching example #5157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kevin-zou
Copy link

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!

@netlify
Copy link

netlify bot commented Mar 30, 2023

👷 Deploy request for cypress-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit def661a

@CLAassistant
Copy link

CLAassistant commented Mar 30, 2023

CLA assistant check
All committers have signed the CLA.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants