@vibe/testkit
Version:
Vibe e2e testing toolkit
16 lines • 712 B
TypeScript
import { Locator, Page } from "@playwright/test";
/**
* Presses a key on the page (e.g., Escape)
* @param {Page} page - The Playwright page object
* @param {string} key - The key to press (e.g., 'Escape', 'Enter')
* @returns {Promise<void>}
*/
export declare const pressKey: (page: Page, key: string) => Promise<void>;
/**
* Drags an element from one location and drops it to another
* @param {Locator} sourceLocator - The locator of the element to drag
* @param {Locator} targetLocator - The locator of the element to drop to
* @returns {Promise<void>}
*/
export declare const dragAndDrop: (sourceLocator: Locator, targetLocator: Locator) => Promise<void>;
//# sourceMappingURL=common-actions.d.ts.map