mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-20 06:01:12 -06:00
fix bad links found by spider
This commit is contained in:
@@ -39,7 +39,7 @@ Option | Default | Description
|
||||
`defaultCommandTimeout` | `4000` | Time, in milliseconds, to wait until most DOM based commands are considered timed out
|
||||
`execTimeout` | `60000` | Time, in milliseconds, to wait for a system command to finish executing during [`cy.exec`](https://on.cypress.io/api/exec) command
|
||||
`pageLoadTimeout` | `60000` | Time, in milliseconds, to wait until [`cy.visit`](https://on.cypress.io/api/visit), [`cy.go`](https://on.cypress.io/api/go), [`cy.reload`](https://on.cypress.io/api/reload), or a page load times out
|
||||
`requestTimeout` | `5000` | Time, in milliseconds, to wait for an XHR request during [`cy.wait`](wait) command
|
||||
`requestTimeout` | `5000` | Time, in milliseconds, to wait for an XHR request during [`cy.wait`](https://on.cypress.io/api/wait) command
|
||||
`responseTimeout` | `30000` | Time, in milliseconds, to wait until a response for [`cy.request`](https://on.cypress.io/api/request), [`cy.wait`](https://on.cypress.io/api/wait), [`cy.fixture`](https://on.cypress.io/api/fixture), [`cy.getCookie`](https://on.cypress.io/api/getcookie), [`cy.getCookies`](https://on.cypress.io/api/getcookies), [`cy.setCookie`](https://on.cypress.io/api/setcookie), [`cy.clearCookie`](https://on.cypress.io/api/clearcookie) and [`cy.clearCookies`](https://on.cypress.io/api/clearcookies), and [`cy.screenshot`](https://on.cypress.io/api/screenshot) commands
|
||||
|
||||
***
|
||||
|
||||
@@ -26,7 +26,7 @@ it("let's me debug like a fiend", function() {
|
||||
})
|
||||
```
|
||||
|
||||
...alas, this will not work. As you may remember from [Commands, Elements, and Assertions](/guides/cypress-basics/commands-elements-and-assertions.html), `cy.*` commands simply enqueue and action to be taken later. Can you see what this test will do given that perspective? `cy.visit()` and `cy.get()` will both return immediately, having enqueued their work to be done later, and `debugger` will be executed before anything has happened... which will result in an error!
|
||||
...alas, this will not work. As you may remember from [Core Concepts](/guides/cypress-basics/core-concepts.html), `cy.*` commands simply enqueue and action to be taken later. Can you see what this test will do given that perspective? `cy.visit()` and `cy.get()` will both return immediately, having enqueued their work to be done later, and `debugger` will be executed before anything has happened... which will result in an error!
|
||||
|
||||
Let's use `.then()` to tap into the Cypress command flow and execute `debugger` at the appropriate time:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ title: Next Steps
|
||||
- how to write and organize simple tests
|
||||
|
||||
# Next Steps:
|
||||
- **Want More Like This?** Move on to [Cypress Basics](/next)!
|
||||
- **Want More Like This?** Move on to Cypress Basics!
|
||||
- **Want to See Cypress in Action?** Check out examples, recipes, blog posts, and videos of Cypress in real world usage
|
||||
- **Configuration:** A cheatsheet on
|
||||
- **Is Cypress Open Source?** You bet it is!
|
||||
|
||||
Reference in New Issue
Block a user