UNPKG

idea-at

Version:

Automated Testing suite for IDEA projects

32 lines (31 loc) 1.57 kB
import { Locator, Page } from '@playwright/test'; /** * Clicks on an IDEA select element and selects an option by text * @param page - The Playwright Page object * @param input - The input Locator to click on * @param text - The text of the option to select */ export declare const clickOnIDEASelectByText: (page: Page, input: Locator, text: string) => Promise<void>; /** * Clicks on an input element to open an IDEA action sheet, waits for it to be visible, * then selects an option by its text * @param page - The Playwright Page object * @param input - The input Locator to click on * @param text - The text of the option to select */ export declare const selectOptionOnIDEAActionSheet: (page: Page, input: Locator, text: string) => Promise<void>; /** * Clicks on an IDEA checker element, waits for the modal to be visible, * then toggles multiple checkboxes by their text labels and clicks the confirm button * @param page - The Playwright Page object * @param input - The input Locator to click on * @param checks - Array of checkbox text labels to toggle */ export declare const toggleChecksOnIDEACheckerByText: (page: Page, input: Locator, checks: string[]) => Promise<void>; /** * Clicks on an IDEA inline checker element and selects multiple options by text * @param page - The Playwright Page object * @param input - The input Locator to click on * @param optionsByText - Array of option text strings to select */ export declare const clickOnInlineCheckerByText: (page: Page, input: Locator, optionsByText: string[]) => Promise<void>;