Skip to content

Commit

Permalink
chore: correct number of queries in example
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Jul 6, 2023
1 parent 94ea50a commit a3ff8c1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/guides/core-concepts/retry-ability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ important to understand the different rules by which they operate.
log.
- **Non-queries** only execute once.

For example, there are 4 queries, an action, and 2 assertions in
For example, there are 5 queries, an action, and 2 assertions in
the test below.

```javascript
Expand Down Expand Up @@ -242,10 +242,9 @@ cy.get('[data-testid="mobile-nav"]', { timeout: 10000 })
.and('contain', 'Home')
```

Cypress will retry for up to 10 seconds to find an element with `data-testid`
attribute `mobile-nav`. It will then retry for up to 10 seconds waiting for it
to be visible; once it's visible, it will wait up to 10s for it to contain
"Home". For more examples, read the
Cypress will retry for up to 10 seconds to find a visible element with
`data-testid` attribute `mobile-nav` with text containing "Home". For more
examples, read the
[Timeouts](/guides/core-concepts/introduction-to-cypress#Timeouts) section in
the "Introduction to Cypress" guide.

Expand Down

0 comments on commit a3ff8c1

Please sign in to comment.