interface

PlaywrightMatchers

Collection of custom Playwright matchers for nut.js assertions.
Pass this to expect.extend() to register all matchers.

typescript
interface PlaywrightMatchers

Properties

NameTypeDescription
toBeAt(received: MouseClass, position: Point) => Promise<{ message: () => string; pass: boolean }>-
toBeIn(received: MouseClass, region: Region) => Promise<{ message: () => string; pass: boolean }>-
toHaveColor(received: Point, needle: RGBA) => Promise<{ message: () => string; pass: boolean }>-
toMatchContentDescription(received: Region | ScreenClass, description: string, parameters: OptionalSearchParameters<PROVIDER_DATA>) => Promise<{ message: () => string; pass: boolean }>-
toShow(received: Region | ScreenClass, needle: FindInput | Promise<FindInput>, parameters: OptionalSearchParameters<PROVIDER_DATA>) => Promise<{ message: () => string; pass: boolean }>-
toWaitFor(received: Region | ScreenClass, needle: FindInput | Promise<FindInput>, timoutMs: number, updateInterval: number, parameters: OptionalSearchParameters<PROVIDER_DATA>) => Promise<{ message: () => string; pass: boolean }>-

Was this page helpful?