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
| Parameter | Type | Description |
|---|---|---|
container | Container | The container to search within |
testId | string | RegExp | The test ID or pattern to match |
options? | TextMatchOptions | Text matching options (exact, normalizer) |
Returns
Promise<Widget>
Promise resolving to the matching widget