diff --git a/docs/api/commands/intercept.mdx b/docs/api/commands/intercept.mdx index 5a3ee92b12..ef9b681aca 100644 --- a/docs/api/commands/intercept.mdx +++ b/docs/api/commands/intercept.mdx @@ -274,7 +274,7 @@ cy.intercept({ // same as above, but using regex cy.intercept({ - method: '/PUT|PATCH/', + method: /PUT|PATCH/, url: '**/users/*', }) ```