Documentation

API Referencefunction

function clickOutputAsync()

Waits for matching output to be rendered, and simulates a user click event.

function clickOutputAsync(
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.