Skip to main content
Version: 1.x

Type Alias: UI5MatcherFn

UI5MatcherFn = (page, controlId, ...args) => Promise<MatcherResult>

A matcher function suitable for expect.extend() registration.

Parameters​

page​

MatcherPage

controlId​

string

args​

...readonly unknown[]

Returns​

Promise<MatcherResult>

Remarks​

This is the output of createUI5Matcher — it wraps the raw check function with pollUntilPass auto-retry and accepts an optional trailing MatcherOptions parameter.

Example​

const matcher: UI5MatcherFn = async (page, controlId, expected, options?) => {
// auto-retry logic built-in
};