Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
As I outlined [here](testing-library/cypress-testing-library#135), this example is incorrect. @pranjaljately pointed out the correct code [here](testing-library/cypress-testing-library#135 (comment)).
  • Loading branch information
coryhouse committed May 29, 2020
1 parent a8c684a commit 28a0e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cypress-testing-library/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ To show some simple examples (from
```javascript
cy.findAllByText('Jackie Chan').click()
cy.findByText('Button Text').should('exist')
cy.findByText('Non-existing Button Text').should('not.exist')
cy.findByText(/Non-existing Button Text/).should('not.exist')
cy.findByLabelText('Label text', {timeout: 7000}).should('exist')

// findAllByText _inside_ a form element
Expand Down

0 comments on commit 28a0e4b

Please sign in to comment.