From 91cfd5cfceb3b506f829fb4be24b67f31dde4007 Mon Sep 17 00:00:00 2001 From: Robinson Arley Rojas Novoa Date: Mon, 18 Sep 2023 17:43:42 -0500 Subject: [PATCH 1/3] Update intercept.mdx Fix url variable cy.intercept --- docs/api/commands/intercept.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/commands/intercept.mdx b/docs/api/commands/intercept.mdx index 9420506bd2..a2b9fc3acb 100644 --- a/docs/api/commands/intercept.mdx +++ b/docs/api/commands/intercept.mdx @@ -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 From 37a22805ce93d9449b85630307af243ffad60274 Mon Sep 17 00:00:00 2001 From: Robinson Arley Rojas Novoa Date: Tue, 10 Oct 2023 14:44:53 -0500 Subject: [PATCH 2/3] Update intercept.mdx Code style fix --- docs/api/commands/intercept.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/commands/intercept.mdx b/docs/api/commands/intercept.mdx index a2b9fc3acb..1bfde8183a 100644 --- a/docs/api/commands/intercept.mdx +++ b/docs/api/commands/intercept.mdx @@ -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({url: '/temporary-error', times: 1 }, { forceNetworkError: true }) +cy.intercept({ url: '/temporary-error', times: 1 }, { forceNetworkError: true }) ``` ### Pattern Matching From 63f89eef9ea4e969e9e334cc1736988dcf2c027e Mon Sep 17 00:00:00 2001 From: Matthew Schile Date: Wed, 11 Oct 2023 10:00:35 -0600 Subject: [PATCH 3/3] fixed lint issue --- docs/api/commands/intercept.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/commands/intercept.mdx b/docs/api/commands/intercept.mdx index 1bfde8183a..2c18f33ebb 100644 --- a/docs/api/commands/intercept.mdx +++ b/docs/api/commands/intercept.mdx @@ -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({ url: '/temporary-error', times: 1 }, { forceNetworkError: true }) +cy.intercept({ url: '/temporary-error', times: 1 }, { forceNetworkError: true }) ``` ### Pattern Matching