maests
Version:
An executable compiler for creating Maestro's yaml-flows with typescript.
23 lines (22 loc) • 950 B
TypeScript
/**
* Waits until an ongoing animation or video ends.
* @param maxWait - Optional timeout (in milliseconds) to wait before proceeding.
*/
export declare const waitForAnimationEnd: (maxWait?: number) => void;
/**
* Waits until an element with the given testId is visible.
* @param id - The testId of the element to wait for.
* @param maxWait - Maximum wait time (in milliseconds) for the element to appear.
*/
export declare const waitUntilVisible: (id: string, maxWait: number) => void;
/**
* Waits until an element with the given testId is no longer visible.
* @param id - The testId of the element to wait for.
* @param maxWait - Maximum wait time (in milliseconds) for the element to disappear.
*/
export declare const waitUntilNotVisible: (id: string, maxWait: number) => void;
/**
* Waits for a specified number of milliseconds.
* @param ms - The number of milliseconds to wait.
*/
export declare const wait: (ms: number) => void;