You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: Remove `query*` queries. Throw an error instead. Fixing requires updating all `query*` to `find*` queries. In practice this means replacing `cy.query` with `cy.find`
BREAKING CHANGE: Remove fallback that retries chaiined query that assumes no previous subject. In practice this means starting new chains if no previous subject is required.
```js
// Before
cy.findByText('Foo')
.click()
.findByText('Bar') // Element with 'Bar' text is not a child of an element with 'Foo' text
.click()
// After
cy.findByText('Foo')
.click()
cy.findByText('Bar')
.click()
```
Typings are defined in `@types/testing-library__cypress` at [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__cypress),
81
+
Typings are defined in `@types/testing-library__cypress` at
and should be added as follows in `tsconfig.json`:
84
84
85
85
```json
@@ -100,11 +100,12 @@ Add this line to your project's `cypress/support/commands.js`:
100
100
import'@testing-library/cypress/add-commands'
101
101
```
102
102
103
-
You can now use all of `DOM Testing Library`'s `findBy`, `findAllBy`, `queryBy`
104
-
and `queryAllBy`commands.
103
+
You can now use all of `DOM Testing Library`'s `findBy` and `findAllBy`
104
+
commands.
105
105
[See the `DOM Testing Library` docs for reference](https://testing-library.com)
106
106
107
-
You can find [all Library definitions here](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__cypress/index.d.ts).
0 commit comments