@vibe/testkit
Version:
Vibe e2e testing toolkit
17 lines • 786 B
TypeScript
import { 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 {Page} page - The Playwright page object
* @param {string} sourceSelector - CSS or XPath selector of the element to drag
* @param {string} targetSelector - CSS or XPath selector of the element to drop to
* @returns {Promise<void>}
*/
export declare const dragAndDrop: (page: Page, sourceSelector: string, targetSelector: string) => Promise<void>;
//# sourceMappingURL=common-actions.d.ts.map