Skip to content

Commit a473c97

Browse files
authored
Switch to cy.findByText (#465)
1 parent fea63c4 commit a473c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dom-testing-library/api-helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ within(signinModal).getByPlaceholderText('Username')
150150

151151
```js
152152
cy.get('form').within(() => {
153-
cy.getByText('Button Text').should('be.disabled')
153+
cy.findByText('Button Text').should('be.disabled')
154154
})
155155
```
156156

0 commit comments

Comments
 (0)