Skip to main content

Function: findByTestId()

findByTestId(container, testId, options?): Promise<Widget>

Defined in: queries.ts:319

Waits for and finds a single widget matching the specified test ID.

Parameters

ParameterTypeDescription
containerContainerThe container to search within
testIdstring | RegExpThe test ID or pattern to match
options?TextMatchOptionsText matching options (exact, normalizer)

Returns

Promise<Widget>

Promise resolving to the matching widget