MCPcopy Index your code
hub / github.com/callstack/react-native-testing-library / queryAllByLabelText

Function queryAllByLabelText

src/queries/label-text.ts:19–27  ·  view source on GitHub ↗
(instance: TestInstance)

Source from the content-addressed store, hash-verified

17type ByLabelTextOptions = CommonQueryOptions & TextMatchOptions;
18
19function 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
29const getMultipleError = (labelText: TextMatch) =>
30 `Found multiple elements with accessibility label: ${String(labelText)} `;

Callers

nothing calls this directly

Calls 2

findAllFunction · 0.90
matchAccessibilityLabelFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…