e2ed
Version:
E2E testing framework over Playwright
11 lines (10 loc) • 510 B
TypeScript
import type { Locator } from '@playwright/test';
import type { Selector, WithStabilizationInterval } from '../types/internal';
type Options = Parameters<Locator['dispatchEvent']>[2] & WithStabilizationInterval & Readonly<{
eventInit?: Parameters<Locator['dispatchEvent']>[1];
}>;
/**
* Dispatches an event over a specified DOM element.
*/
export declare const dispatchEvent: (selector: Selector, eventName: string, { eventInit, stabilizationInterval, ...options }?: Options) => Promise<void>;
export {};