Documentation

API Referencefunction

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

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.