(instance: TestInstance)
| 17 | type ByLabelTextOptions = CommonQueryOptions & TextMatchOptions; |
| 18 | |
| 19 | function queryAllByLabelText(instance: TestInstance) { |
| 20 | return (text: TextMatch, queryOptions?: ByLabelTextOptions) => { |
| 21 | return findAll( |
| 22 | instance, |
| 23 | (item) => matchAccessibilityLabel(item, text, queryOptions), |
| 24 | queryOptions, |
| 25 | ); |
| 26 | }; |
| 27 | } |
| 28 | |
| 29 | const getMultipleError = (labelText: TextMatch) => |
| 30 | `Found multiple elements with accessibility label: ${String(labelText)} `; |
nothing calls this directly
no test coverage detected
searching dependent graphs…