function enterTextOutputAsync()
Waits for matching output to be rendered, and simulates user text input.
function enterTextOutputAsync(
value: string,
select: OutputSelectFilter & {
timeout?: number;
},
...nested: OutputSelectFilter[]
): Promise<TestOutputElement>;
Notes
- This function awaits the result of expectOutputAsync(), finds a single element, and sends text input using TestOutputElement.setValue().
- The selection criteria don’t automatically include the text field type; to match a text field element, use the
textfieldtype, or use an accessible label or name property.
Return value
The test output element itself
Errors
This function throws an error if the output is not found after the provided timeout (or default value of 200ms) or if multiple elements match the selection criteria.
