Skip to content

Commit 421eb9e

Browse files
authored
Merge pull request #4735 from cypress-io/content/remove-obsolete-for-multidomain-ga
Remove pages and references to functionality obsoleted by multidomain GA
2 parents 8a0185f + e4cbda6 commit 421eb9e

20 files changed

+10
-1608
lines changed

content/_data/sidebar.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,6 @@
350350
{
351351
"title": "Cross Browser Testing",
352352
"slug": "cross-browser-testing"
353-
},
354-
{
355-
"title": "Web Security",
356-
"slug": "web-security"
357353
}
358354
]
359355
},
@@ -757,10 +753,6 @@
757753
"title": "root",
758754
"slug": "root"
759755
},
760-
{
761-
"title": "route",
762-
"slug": "route"
763-
},
764756
{
765757
"title": "screenshot",
766758
"slug": "screenshot"
@@ -781,10 +773,6 @@
781773
"title": "selectFile",
782774
"slug": "selectfile"
783775
},
784-
{
785-
"title": "server",
786-
"slug": "server"
787-
},
788776
{
789777
"title": "session",
790778
"slug": "session"
@@ -941,10 +929,6 @@
941929
"title": "SelectorPlayground",
942930
"slug": "selector-playground-api"
943931
},
944-
{
945-
"title": "Server",
946-
"slug": "cypress-server"
947-
},
948932
{
949933
"title": "arch",
950934
"slug": "arch"

content/api/commands/intercept.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ Spy and stub network requests and responses.
1111

1212
</Alert>
1313

14-
<Alert type="bolt">
15-
16-
`cy.intercept()` is the successor to `cy.route()` as of Cypress 6.0.0. See
17-
[Comparison to `cy.route`](#Comparison-to-cy-route).
18-
19-
</Alert>
20-
2114
<Alert type="warning">
2215

2316
All intercepts are automatically cleared before every test.
@@ -1486,16 +1479,6 @@ Cypress.minimatch('http://localhost/users?_limit=3', '**/users?_limit=+(3|5)', {
14861479
// true (plus debug messages)
14871480
```
14881481

1489-
## Comparison to `cy.route()`
1490-
1491-
Unlike [cy.route()](/api/commands/route), `cy.intercept()`:
1492-
1493-
- can intercept all types of network requests including Fetch API, page loads,
1494-
XMLHttpRequests, resource loads, etc.
1495-
- does not require calling [cy.server()](/api/commands/server) before use - in
1496-
fact, `cy.server()` does not influence `cy.intercept()` at all.
1497-
- does not have method set to `GET` by default, but intercepts `*` methods.
1498-
14991482
## `cy.intercept()` and request caching
15001483

15011484
`cy.intercept()` intercepts requests at the network layer. This can cause
@@ -1597,7 +1580,6 @@ information about the request and response to the console:
15971580
- [Network Requests Guide](/guides/guides/network-requests)
15981581
- [Cypress Example Recipes](https://github.com/cypress-io/cypress-example-recipes#stubbing-and-spying)
15991582
- [Kitchen Sink Examples](https://github.com/cypress-io/cypress-example-kitchensink/blob/master/cypress/integration/2-advanced-examples/network_requests.spec.js)
1600-
- [Migrating `cy.route()` to `cy.intercept()`](/guides/references/migration-guide#Migrating-cy-route-to-cy-intercept)
16011583
<!-- TODO add examples from the resources below to `cypress-example-recipes` repo -->
16021584
- [Smart GraphQL Stubbing in Cypress](https://glebbahmutov.com/blog/smart-graphql-stubbing/)
16031585
blog post

content/api/commands/origin.md

100755100644
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,6 @@ following Cypress commands will throw errors if used in the callback:
508508
- `cy.origin()`
509509
- [`cy.intercept()`](/api/commands/intercept)
510510
- [`cy.session()`](/api/commands/session)
511-
- [`cy.server()`](/api/commands/server)
512-
- [`cy.route()`](/api/commands/route)
513511

514512
### Other limitations
515513

content/api/commands/request.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,9 @@ browser cookies.
357357
In other words, `cy.request()` transparently performs all of the underlying
358358
functions as if it came from the browser.
359359

360-
### [`cy.intercept()`](/api/commands/intercept), [`cy.server()`](/api/commands/server), and [`cy.route()`](/api/commands/route)
360+
### [`cy.intercept()`](/api/commands/intercept)
361361

362-
#### `cy.request()` sends requests to actual endpoints, bypassing those defined using `cy.route()` or `cy.intercept()`
363-
364-
`cy.server()` and any configuration passed to
365-
[`cy.server()`](/api/commands/server) has no effect on `cy.request()`.
362+
#### `cy.request()` sends requests to actual endpoints, bypassing those defined using `cy.intercept()`
366363

367364
The intention of `cy.request()` is to be used for checking endpoints on an
368365
actual, running server without having to start the front end application.

0 commit comments

Comments
 (0)