Skip to content

Commit 4ccf988

Browse files
author
Kent C. Dodds
authored
Update api-queries.md
1 parent ba1d1b1 commit 4ccf988

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

docs/api-queries.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ See [TextMatch](#textmatch) for documentation on what can be passed to a query.
5858
### `ByLabelText`
5959

6060
> getByLabelText, queryByLabelText, getAllByLabelText, queryAllByLabelText
61+
> findByLabelText, findAllByLabelText
6162
6263
```typescript
6364
getByLabelText(
@@ -145,7 +146,7 @@ const inputNode = getByLabelText(container, 'username', {
145146
### `ByPlaceholderText`
146147

147148
> getByPlaceholderText, queryByPlaceholderText, getAllByPlaceholderText,
148-
> queryAllByPlaceholderText
149+
> queryAllByPlaceholderText, findByPlaceholderText, findAllByPlaceholderText
149150
150151
```typescript
151152
getByPlaceholderText(
@@ -199,7 +200,7 @@ cy.getByPlaceholderText('Username').should('exist')
199200
200201
### `ByText`
201202

202-
> getByText, queryByText, getAllByText, queryAllByText
203+
> getByText, queryByText, getAllByText, queryAllByText, findByText, findAllByText
203204
204205
```typescript
205206
getByText(
@@ -270,7 +271,8 @@ If you'd rather disable this behavior, set `ignore` to `false`.
270271

271272
### `ByAltText`
272273

273-
> getByAltText, queryByAltText, getAllByAltText, queryAllByAltText
274+
> getByAltText, queryByAltText, getAllByAltText, queryAllByAltText, findByAltText,
275+
> findAllByAltText
274276
275277
```typescript
276278
getByAltText(
@@ -325,7 +327,8 @@ cy.getByAltText(/incredibles.*png$/i).should('exist')
325327

326328
### `ByTitle`
327329

328-
> getByTitle, queryByTitle, getAllByTitle, queryAllByTitle
330+
> getByTitle, queryByTitle, getAllByTitle, queryAllByTitle, findByTitle,
331+
> findAllByTitle
329332
330333
```typescript
331334
getByTitle(
@@ -383,7 +386,7 @@ cy.getByTitle('Close').should('exist')
383386
### `ByDisplayValue`
384387

385388
> getByDisplayValue, queryByDisplayValue, getAllByDisplayValue,
386-
> queryAllByDisplayValue
389+
> queryAllByDisplayValue, findByDisplayValue, findAllByDisplayValue
387390
388391
```typescript
389392
getByDisplayValue(
@@ -518,7 +521,8 @@ cy.getByDisplayName('Alaska').should('exist')
518521

519522
### `ByRole`
520523

521-
> getByRole, queryByRole, getAllByRole, queryAllByRole
524+
> getByRole, queryByRole, getAllByRole, queryAllByRole, findByRole,
525+
> findAllByRole
522526
523527
```typescript
524528
getByRole(
@@ -567,7 +571,8 @@ cy.getByRole('dialog').should('exist')
567571

568572
### `ByTestId`
569573

570-
> getByTestId, queryByTestId, getAllByTestId, queryAllByTestId
574+
> getByTestId, queryByTestId, getAllByTestId, queryAllByTestId, findByTestId,
575+
> findAllByTestId
571576
572577
```typescript
573578
getByTestId(

0 commit comments

Comments
 (0)