Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Network Stubbing Documentation #2854

Merged
merged 73 commits into from
Aug 31, 2020
Merged
Show file tree
Hide file tree
Changes from 71 commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
6693f59
Step 1 network stubbing docs
panzarino Jun 4, 2020
bde318e
Experimental flag
panzarino Jun 4, 2020
69ad8a8
More docs
panzarino Jun 5, 2020
b9ebd37
More docs
panzarino Jun 5, 2020
b15de1e
More on cy.route2
panzarino Jun 6, 2020
3d295d5
Update net stubbing docs
panzarino Jun 8, 2020
6576808
docs: update parameters to have simple examples
bencodezen Jul 6, 2020
867358a
docs: update warning message to point people to route2
bencodezen Jul 6, 2020
096b827
docs: add other examples
bencodezen Jul 6, 2020
e021068
fix: missing sidebar item for route2
bencodezen Jul 7, 2020
368f122
feature: add experimental color to distinguish features from standard…
bencodezen Jul 7, 2020
5c592c6
Update styling of 'experimental' pages
jennifer-shehane Jul 8, 2020
d4cf102
fix: remove duplicate endnote tag
bencodezen Jul 30, 2020
0d9e5b6
docs: update source/api/commands/route2.md
bencodezen Jul 30, 2020
00764c4
docs: clean up new line
bencodezen Jul 30, 2020
1b1ad79
docs: update source/api/commands/route2.md
bencodezen Jul 30, 2020
135394c
docs: update source/api/commands/route2.md
bencodezen Jul 30, 2020
399b78d
docs: update references and clarify route property matches
bencodezen Jul 30, 2020
f8e2747
fix broken partial that had extraneous endnote tag
jennifer-shehane Jul 31, 2020
3182208
Fix menuspy not working on page
jennifer-shehane Jul 31, 2020
4723e96
Update table to include Types column
jennifer-shehane Jul 31, 2020
7dd84a1
minor editing updates
jennifer-shehane Jul 31, 2020
0e21d85
docs: update example
bencodezen Aug 1, 2020
2ec4851
docs: update source/api/commands/route2.md
bencodezen Aug 3, 2020
a4091da
docs: update source/api/commands/route2.md
bencodezen Aug 3, 2020
b5f701a
docs: fix method call
bencodezen Aug 3, 2020
70a6289
docs: Update source/api/commands/route2.md
bencodezen Aug 3, 2020
bc378b6
docs: Update source/api/commands/route2.md
bencodezen Aug 3, 2020
6d91694
docs: Update source/api/commands/route2.md
bencodezen Aug 3, 2020
2fa971e
docs: update source/api/commands/route2.md
bencodezen Aug 3, 2020
dde9a2a
docs: update source/api/commands/route2.md
bencodezen Aug 3, 2020
6565101
docs: update example
bencodezen Aug 3, 2020
ffbed54
style: fix missing endquotes and structure comments
bencodezen Aug 12, 2020
04c7e40
docs: surface minimatch and arguments
bencodezen Aug 24, 2020
6bca1b8
docs: remove word repetition
bencodezen Aug 24, 2020
dd91563
docs: reformat api docs for more explicit aspects of the api
bencodezen Aug 24, 2020
1cebce4
docs: update description
bencodezen Aug 24, 2020
12faf96
docs: add better type documentation with some refactoring
bencodezen Aug 25, 2020
1fcd060
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
d2325cf
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
0ce81fb
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
1085f67
docs: remove extra word
bencodezen Aug 28, 2020
246acb5
docs: update req.body example
bencodezen Aug 28, 2020
cb51e01
docs: update req.body example
bencodezen Aug 28, 2020
e5de88e
docs: update req.headers examples
bencodezen Aug 28, 2020
4442d48
docs: replace outdated string matching warning
bencodezen Aug 28, 2020
e086d56
docs: replace outdated method
bencodezen Aug 28, 2020
2f82f64
docs: update example
bencodezen Aug 28, 2020
3d53b7c
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
e41313a
docs: Update source/api/commands/route2.md
bencodezen Aug 28, 2020
b920eb5
Merge branch 'network-stubbing' of github.com:cypress-io/cypress-docu…
bencodezen Aug 28, 2020
dabda18
docs: update syntax signatures
bencodezen Aug 28, 2020
25ae3ae
docs: remove usage section since arguments need to be explained first
bencodezen Aug 28, 2020
39b9c39
docs: move glob source to correct location
bencodezen Aug 28, 2020
b4b4a75
docs: add static response example
bencodezen Aug 28, 2020
eb66794
Merge branch 'develop' into network-stubbing
bencodezen Aug 28, 2020
1c512dd
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
79098f4
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
cdbbb1a
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
8133463
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
65d0e49
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
b263972
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
b47c7de
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
4eaabbc
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
114825c
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
a93869d
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
3f64615
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
36da484
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
cd7eb78
docs: update source/api/commands/route2.md
bencodezen Aug 28, 2020
5fdf1a7
docs: add static response section to the docs
bencodezen Aug 28, 2020
e4435cf
Merge branch 'network-stubbing' of github.com:cypress-io/cypress-docu…
bencodezen Aug 28, 2020
97e2e7c
docs: update source/api/commands/route2.md
bencodezen Aug 31, 2020
651476d
Apply suggestions from code review
flotwig Aug 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/_data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ api:
rightclick: rightclick.html
root: root.html
route: route.html
route2: route2.html
screenshot: screenshot.html
scrollintoview: scrollintoview.html
scrollto: scrollto.html
Expand Down
4 changes: 3 additions & 1 deletion source/_partial/network_stubbing_warning.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% note danger %}
🚨 Please be aware that Cypress only currently supports intercepting XMLHttpRequests. **Requests using the Fetch API and other types of network requests like page loads and `<script>` tags will not be intercepted or visible in the Command Log.** You can automatically polyfill `window.fetch` to spy on and stub requests by enabling an [experimental](https://on.cypress.io/experimental) feature `experimentalFetchPolyfill`. See {% issue 95 %} for more details and temporary workarounds.
{% endnote %}

Cypress also has a new experimental [route2](/api/commands/route2.html) feature that supports requests using the Fetch API and other types of network requests like page loads. For more information, check out the [cy.route2() documentation](/api/commands/route2.html).{% endnote %}

Loading