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

Remove broken + old links #5584

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 0 additions & 8 deletions docs/api/assertions/should.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,6 @@ cy.get('.connectors-list > li').should(($lis) => {
})
```

:::info

Read
[Cypress should callback](https://glebbahmutov.com/blog/cypress-should-callback/)
blog post to see more variations of the above example.

:::

For clarity you can pass a string message as a second argument to any `expect`
assertion, see [Chai#expect](https://www.chaijs.com/guide/styles/#expect).

Expand Down
5 changes: 0 additions & 5 deletions docs/api/commands/intercept.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1619,11 +1619,6 @@ information about the request and response to the console:
- [Network Requests Guide](/guides/guides/network-requests)
- [Cypress Example Recipes](https://github.com/cypress-io/cypress-example-recipes#stubbing-and-spying)
- [Kitchen Sink Examples](https://github.com/cypress-io/cypress-example-kitchensink/blob/master/cypress/e2e/2-advanced-examples/network_requests.cy.js)
<!-- TODO add examples from the resources below to `cypress-example-recipes` repo -->
- [Smart GraphQL Stubbing in Cypress](https://glebbahmutov.com/blog/smart-graphql-stubbing/)
blog post
- [How cy.intercept works](https://slides.com/bahmutov/how-cy-intercept-works)
- [Cypress `cy.intercept()` Problems](https://glebbahmutov.com/blog/cypress-intercept-problems/)

<!-- map often used refs to deeplinks within page !-->

Expand Down
6 changes: 0 additions & 6 deletions docs/api/commands/task.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,3 @@ the following:
- [Blog: Incredibly Powerful cy.task()](https://glebbahmutov.com/blog/powerful-cy-task/)
- [Blog: Rolling for a Test](https://glebbahmutov.com/blog/rolling-for-test/)
- [Universal Code Test with Cypress](https://glebbahmutov.com/blog/universal-code-test/)
- repository
[cypress-db-example](https://github.com/bahmutov/cypress-db-example) shows how
to connect to a Sqlite3 database and use it during tests.
- [Blog: Testing Mongo with Cypress](https://glebbahmutov.com/blog/testing-mongo-with-cypress/)
shows how to access the MongoDB during Cypress API tests locally and on
CircleCI.
26 changes: 11 additions & 15 deletions docs/examples/recipes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,24 @@ Demo recipes from the blog posts at [Cypress blog](https://www.cypress.io/blog).

## Stubbing and spying

| Recipe | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [Stubbing Functions](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__functions) | Use `cy.stub()` to test function calls |
| [Stubbing `window.fetch`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__window-fetch) | Use `cy.stub()` to control fetch requests |
| [Stubbing using`cy.intercept`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__intercept) | Control network using `cy.intercept` API |
| [Stubbing `window.open` and `console.log`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__window) | Use `cy.stub()` and `cy.spy()` to test application behavior |
| [Stubbing `window.print`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__window-print) | Use `cy.stub() `to test `window.print` call made from the application |
| [Stubbing Google Analytics](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__google-analytics) | Use `cy.stub()` and `cy.intercept()` to test Google Analytics calls |
| [Stub methods called on `console`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__console) | Use `cy.stub()` to test and control methods called on `console` |
| [Stub resource loading](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing__resources) | Use `MutationObserver` to stub resource loading like `img` tags |
| [Stub `navigator.cookieEnabled` property](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing__navigator) | Use `cy.stub()` to mock the `navigator.cookieEnabled` property |
| Recipe | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| [Stubbing Functions](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__functions) | Use `cy.stub()` to test function calls |
| [Stubbing `window.fetch`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__window-fetch) | Use `cy.stub()` to control fetch requests |
| [Stubbing using`cy.intercept`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__intercept) | Control network using `cy.intercept` API |
| [Stubbing `window.open` and `console.log`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__window) | Use `cy.stub()` and `cy.spy()` to test application behavior |
| [Stubbing `window.print`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__window-print) | Use `cy.stub() `to test `window.print` call made from the application |
| [Stubbing Google Analytics](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__google-analytics) | Use `cy.stub()` and `cy.intercept()` to test Google Analytics calls |
| [Stub methods called on `console`](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__console) | Use `cy.stub()` to test and control methods called on `console` |
| [Stub resource loading](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing__resources) | Use `MutationObserver` to stub resource loading like `img` tags |
| [Stub `navigator.cookieEnabled` property](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/stubbing-spying__navigator) | Use `cy.stub()` to mock the `navigator.cookieEnabled` property |

## Unit Testing

| Recipe | Description |
| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [Application Code](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/unit-testing__application-code) | Import and test your own application code |

**Note:** looking for the React/Vue component testing recipes? Read the
[Introducing the Cypress Component Test Runner– new in 7.0.0](https://www.cypress.io/blog/2021/04/06/introducing-the-cypress-component-test-runner/)
blog post.

## Server Communication

| Recipe | Description |
Expand Down
8 changes: 0 additions & 8 deletions docs/examples/tutorials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ Learn how to use Cypress to solve specific testing problems from the videos in
the playlists below.

- [Official Cypress.io YouTube Channel](https://www.youtube.com/cypress_io)
- [Cypress.io - end-to-end Testing Framework](https://www.youtube.com/playlist?list=PLzDWIPKHyNmK9NX9_ng2IdrkEr8L4WwB0)
by [Bushra Alam](https://twitter.com/imBushraAlam)
- [Cypress Tips & Tricks](https://www.youtube.com/playlist?list=PLP9o9QNnQuAYYRpJzDNWpeuOVTwxmIxcI)
by [Gleb Bahmutov](https://twitter.com/bahmutov)
- [Cypress Component Testing for Svelte](https://www.youtube.com/playlist?list=PLP9o9QNnQuAa50lwW3cUql5sgdKIWkapp)
by [Gleb Bahmutov](https://twitter.com/bahmutov)
- [Visually testing React component using open source tools](https://www.youtube.com/playlist?list=PLP9o9QNnQuAYhotnIDEUQNXuvXL7ZmlyZ)
by [Gleb Bahmutov](https://twitter.com/bahmutov)

You can also find free Cypress video tutorials on the
[Courses](/examples/media/courses-media) page.
Expand Down
4 changes: 1 addition & 3 deletions docs/faq/questions/using-cypress-faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1146,9 +1146,7 @@ for more info.
For end-to-end tests, yes, as you can read in the official
[Gatsby docs](https://www.gatsbyjs.com/docs/end-to-end-testing/). You can also
watch the "Cypress + Gatsby webinar"
[recording](https://www.youtube.com/watch?v=Tx6Lg9mwcCE) and browse the
webinar's
[slides](https://cypress.slides.com/amirrustam/cypress-gatsby-confidently-fast-web-development).
[recording](https://www.youtube.com/watch?v=Tx6Lg9mwcCE).

For component testing, Gatsby is not currently supported out of the box, but it
might be possible by
Expand Down
3 changes: 1 addition & 2 deletions docs/guides/continuous-integration/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -659,5 +659,4 @@ NO_COLOR=1 cypress run
- [Blog: Setting up Bitbucket Pipelines with proper caching of npm and Cypress](https://www.cypress.io/blog/2018/08/30/setting-up-bitbucket-pipelines-with-proper-caching-of-npm-and-cypress/)
- [Blog: Record Test Artifacts from any Docker CI](https://www.cypress.io/blog/2018/08/28/record-test-artifacts-from-any-ci/)
- [Continuous Integration with Cypress](https://www.cypress.io/blog/2019/10/04/webcast-recording-continuous-integration-with-cypress/)
webinar covering TeamCity, Travis and CircleCI setups,
[slides](https://cypress.slides.com/cypress-io/cypress-on-ci).
webinar covering TeamCity, Travis and CircleCI setups.
1 change: 0 additions & 1 deletion docs/guides/tooling/visual-testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ to see these Percy and Cypress in action.
| [Official docs](https://docs.happo.io/docs/cypress) | Happo's Cypress documentation |
| [Webinar](https://www.youtube.com/watch?v=C_p12IvN5HU) | _Keep your UI Sharp: Ensuring Functional and Visual Quality with Cypress.io + Happo.io_, a webinar recorded together with Cypress and Happo |
| [Blog](https://www.cypress.io/blog/2020/05/27/webcast-recording-keep-your-ui-sharp/) | The companion blog for the Cypress + Happo webinar |
| [Slides](https://cypress.slides.com/cypress-io/cypress-and-happo) | The companion slides for the Cypress + Happo webinar |

### Do It Yourself

Expand Down
Loading