Skip to content

Commit 806650e

Browse files
committed
validate
1 parent 8d93e48 commit 806650e

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

website/docs/12.x/docs/api/queries.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ For this query, `getBy*` is the query variant, and `*ByRole` is the predicate.
4949

5050
The query variants describe the expected number (and timing) of matching elements, so they differ in their return type.
5151

52-
| Variant | Assertion | Return type | Is Async? |
53-
| ---------------------------------------------- | ----------------------------- | ------------------------------------------ | --------- |
52+
| Variant | Assertion | Return type | Is Async? |
53+
| ----------------------------------------------- | ----------------------------- | ------------------------------------------ | --------- |
5454
| [`getBy*`](/docs/api/queries#get-by) | Exactly one matching element | `ReactTestInstance` | No |
5555
| [`getAllBy*`](/docs/api/queries#get-all-by) | At least one matching element | `Array<ReactTestInstance>` | No |
5656
| [`queryBy*`](/docs/api/queries#query-by) | Zero or one matching element | <code>ReactTestInstance &#124; null</code> | No |

website/docs/12.x/docs/guides/how-to-query.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ For this query, `getBy*` is the query variant, and `*ByRole` is the predicate.
1818

1919
The query variants describe the expected number (and timing) of matching elements, so they differ in their return type.
2020

21-
| Variant | Assertion | Return type | Is Async? |
22-
| ---------------------------------------------- | ----------------------------- | ------------------------------------------ | --------- |
21+
| Variant | Assertion | Return type | Is Async? |
22+
| ----------------------------------------------- | ----------------------------- | ------------------------------------------ | --------- |
2323
| [`getBy*`](/docs/api/queries#get-by) | Exactly one matching element | `ReactTestInstance` | No |
2424
| [`getAllBy*`](/docs/api/queries#get-all-by) | At least one matching element | `Array<ReactTestInstance>` | No |
2525
| [`queryBy*`](/docs/api/queries#query-by) | Zero or one matching element | <code>ReactTestInstance &#124; null</code> | No |
@@ -46,8 +46,8 @@ Avoid using `queryAllBy*` in regular tests, as it provides no assertions on the
4646

4747
The query predicate describes how you decide whether to match the given element.
4848

49-
| Predicate | Supported elements | Inspected props |
50-
| ------------------------------------------------------------ | ------------------ | ------------------------------------------------------------------------------------------- |
49+
| Predicate | Supported elements | Inspected props |
50+
| ------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------- |
5151
| [`*ByRole`](/docs/api/queries#by-role) | all host elements | `role`, `accessibilityRole`,<br /> optional: accessible name, accessibility state and value |
5252
| [`*ByLabelText`](/docs/api/queries#by-label-text) | all host elements | `aria-label`, `aria-labelledby`,<br /> `accessibilityLabel`, `accessibilityLabelledBy` |
5353
| [`*ByDisplayValue`](/docs/api/queries#by-display-value) | `TextInput` | `value`, `defaultValue` |

website/docs/13.x/docs/api/queries.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ For this query, `getBy*` is the query variant, and `*ByRole` is the predicate.
4949

5050
The query variants describe the expected number (and timing) of matching elements, so they differ in their return type.
5151

52-
| Variant | Assertion | Return type | Is Async? |
53-
| ---------------------------------------------- | ----------------------------- | ------------------------------------------ | --------- |
52+
| Variant | Assertion | Return type | Is Async? |
53+
| ----------------------------------------------- | ----------------------------- | ------------------------------------------ | --------- |
5454
| [`getBy*`](/docs/api/queries#get-by) | Exactly one matching element | `ReactTestInstance` | No |
5555
| [`getAllBy*`](/docs/api/queries#get-all-by) | At least one matching element | `Array<ReactTestInstance>` | No |
5656
| [`queryBy*`](/docs/api/queries#query-by) | Zero or one matching element | <code>ReactTestInstance &#124; null</code> | No |

website/docs/13.x/docs/guides/how-to-query.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ For this query, `getBy*` is the query variant, and `*ByRole` is the predicate.
1818

1919
The query variants describe the expected number (and timing) of matching elements, so they differ in their return type.
2020

21-
| Variant | Assertion | Return type | Is Async? |
22-
| ---------------------------------------------- | ----------------------------- | ------------------------------------------ | --------- |
21+
| Variant | Assertion | Return type | Is Async? |
22+
| ----------------------------------------------- | ----------------------------- | ------------------------------------------ | --------- |
2323
| [`getBy*`](/docs/api/queries#get-by) | Exactly one matching element | `ReactTestInstance` | No |
2424
| [`getAllBy*`](/docs/api/queries#get-all-by) | At least one matching element | `Array<ReactTestInstance>` | No |
2525
| [`queryBy*`](/docs/api/queries#query-by) | Zero or one matching element | <code>ReactTestInstance &#124; null</code> | No |
@@ -46,8 +46,8 @@ Avoid using `queryAllBy*` in regular tests, as it provides no assertions on the
4646

4747
The query predicate describes how you decide whether to match the given element.
4848

49-
| Predicate | Supported elements | Inspected props |
50-
| ------------------------------------------------------------ | ------------------ | ------------------------------------------------------------------------------------------- |
49+
| Predicate | Supported elements | Inspected props |
50+
| ------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------- |
5151
| [`*ByRole`](/docs/api/queries#by-role) | all host elements | `role`, `accessibilityRole`,<br /> optional: accessible name, accessibility state and value |
5252
| [`*ByLabelText`](/docs/api/queries#by-label-text) | all host elements | `aria-label`, `aria-labelledby`,<br /> `accessibilityLabel`, `accessibilityLabelledBy` |
5353
| [`*ByDisplayValue`](/docs/api/queries#by-display-value) | `TextInput` | `value`, `defaultValue` |

website/docs/14.x/docs/api/queries.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ For this query, `getBy*` is the query variant, and `*ByRole` is the predicate.
4949

5050
The query variants describe the expected number (and timing) of matching elements, so they differ in their return type.
5151

52-
| Variant | Assertion | Return type | Is Async? |
53-
| ---------------------------------------------- | ----------------------------- | ------------------------------------ | --------- |
52+
| Variant | Assertion | Return type | Is Async? |
53+
| ----------------------------------------------- | ----------------------------- | ------------------------------------ | --------- |
5454
| [`getBy*`](/docs/api/queries#get-by) | Exactly one matching element | `HostElement` | No |
5555
| [`getAllBy*`](/docs/api/queries#get-all-by) | At least one matching element | `Array<HostElement>` | No |
5656
| [`queryBy*`](/docs/api/queries#query-by) | Zero or one matching element | <code>HostElement &#124; null</code> | No |

website/docs/14.x/docs/guides/how-to-query.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ For this query, `getBy*` is the query variant, and `*ByRole` is the predicate.
1818

1919
The query variants describe the expected number (and timing) of matching elements, so they differ in their return type.
2020

21-
| Variant | Assertion | Return type | Is Async? |
22-
| ---------------------------------------------- | ----------------------------- | ------------------------------------ | --------- |
21+
| Variant | Assertion | Return type | Is Async? |
22+
| ----------------------------------------------- | ----------------------------- | ------------------------------------ | --------- |
2323
| [`getBy*`](/docs/api/queries#get-by) | Exactly one matching element | `HostElement` | No |
2424
| [`getAllBy*`](/docs/api/queries#get-all-by) | At least one matching element | `Array<HostElement>` | No |
2525
| [`queryBy*`](/docs/api/queries#query-by) | Zero or one matching element | <code>HostElement &#124; null</code> | No |
@@ -46,8 +46,8 @@ Avoid using `queryAllBy*` in regular tests, as it provides no assertions on the
4646

4747
The query predicate describes how you decide whether to match the given element.
4848

49-
| Predicate | Supported elements | Inspected props |
50-
| ------------------------------------------------------------ | ------------------ | ----------------------------------------------------------------------------------------------------------------- |
49+
| Predicate | Supported elements | Inspected props |
50+
| ------------------------------------------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------- |
5151
| [`*ByRole`](/docs/api/queries#by-role) | all host elements | `role`, `accessibilityRole`,<br /> optional: accessible name, accessibility state and value |
5252
| [`*ByLabelText`](/docs/api/queries#by-label-text) | all host elements | `aria-label`, `aria-labelledby`,<br /> `accessibilityLabel`, `accessibilityLabelledBy`,<br /> `alt` (for `Image`) |
5353
| [`*ByDisplayValue`](/docs/api/queries#by-display-value) | `TextInput` | `value`, `defaultValue` |

0 commit comments

Comments
 (0)