File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
docs/cypress-testing-library Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ and `queryAllBy` commands off the global `cy` object.
27
27
[ See the ` DOM Testing Library ` docs for reference] ( https://testing-library.com/docs/dom-testing-library/api-queries ) .
28
28
29
29
> Note: the ` get* ` queries are not supported because for reasonable Cypress tests you
30
- > need retryability and ` find* ` queries already support that. ` query* ` queries are not
31
- > necessary, but supported.
30
+ > need retryability and ` find* ` queries already support that. ` query* ` queries are no longer
31
+ > necessary since v5 and will be removed in v6. ` find* ` fully support built-in Cypress
32
+ > assertions (removes the only use-case for ` query* ` ).
32
33
33
34
## With TypeScript
34
35
@@ -58,9 +59,6 @@ cy.findByLabelText('Label text', {timeout: 7000}).should('exist')
58
59
59
60
// findAllByText _inside_ a form element
60
61
cy .get (' form' ).findByText (' Button Text' ).should (' exist' )
61
- cy .get (' form' ).within (() => {
62
- cy .findByText (' Button Text' ).should (' exist' )
63
- })
64
62
cy .get (' form' ).then (subject => {
65
63
cy .findByText (' Button Text' , {container: subject}).should (' exist' )
66
64
})
You can’t perform that action at this time.
0 commit comments