Skip to content

Commit

Permalink
Update intercept.mdx
Browse files Browse the repository at this point in the history
Fix url variable cy.intercept
  • Loading branch information
RobinsonRojas authored Sep 18, 2023
1 parent 6b6744d commit 91cfd5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/commands/intercept.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ cy.intercept(
// this example will cause 1 request to `/temporary-error`
// to receive a network error and subsequent requests will
// not match this `RouteMatcher`
cy.intercept('/temporary-error', { times: 1 }, { forceNetworkError: true })
cy.intercept({url: '/temporary-error', times: 1 }, { forceNetworkError: true })
```

### Pattern Matching
Expand Down

0 comments on commit 91cfd5c

Please sign in to comment.