Skip to content

Commit 931abec

Browse files
juliusdeltaKent C. Dodds
authored and
Kent C. Dodds
committed
docs: update README.md to coincide with 5.0 release (#86)
1 parent e463ac2 commit 931abec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Add this line to your project's `cypress/support/commands.js`:
9999
import '@testing-library/cypress/add-commands'
100100
```
101101

102-
You can now use all of `DOM Testing Library`'s `getBy`, `getAllBy`, `queryBy`
102+
You can now use all of `DOM Testing Library`'s `findBy`, `findAllBy`, `queryBy`
103103
and `queryAllBy` commands.
104104
[See the `DOM Testing Library` docs for reference](https://testing-library.com)
105105

@@ -109,15 +109,15 @@ To show some simple examples (from
109109
[cypress/integration/commands.spec.js](cypress/integration/commands.spec.js)):
110110

111111
```javascript
112-
cy.getAllByText('Jackie Chan').click()
112+
cy.findAllByText('Jackie Chan').click()
113113
cy.queryByText('Button Text').should('exist')
114114
cy.queryByText('Non-existing Button Text').should('not.exist')
115115
cy.queryByLabelText('Label text', {timeout: 7000}).should('exist')
116116
cy.get('form').within(() => {
117-
cy.getByText('Button Text').should('exist')
117+
cy.findByText('Button Text').should('exist')
118118
})
119119
cy.get('form').then(subject => {
120-
cy.getByText('Button Text', {container: subject}).should('exist')
120+
cy.findByText('Button Text', {container: subject}).should('exist')
121121
})
122122
```
123123

0 commit comments

Comments
 (0)