@augment-vir/test
Version:
A universal testing suite that works with Mocha style test runners _and_ Node.js's built-in test runner.
17 lines (16 loc) • 575 B
TypeScript
import { type Page } from '@playwright/test';
import { type UniversalTestContext } from '../augments/universal-testing-suite/universal-test-context.js';
/**
* Options for `testPlaywright.getMenuOption`.
*
* @category Internal
*/
export type MenuOptionOptions = Parameters<Page['getByRole']>[1] & Partial<{
nth: number;
}>;
/**
* Find the matching (or first) "option" element.
*
* @category Internal
*/
export declare function getMenuOption(testContext: Readonly<UniversalTestContext>, options?: MenuOptionOptions | undefined): import("@playwright/test").Locator;