UNPKG

@agnos-ui/page-objects

Version:

Page objects to be used when testing AgnosUI-based applications with Playwright.

46 lines (45 loc) 1.77 kB
import type { Locator } from '@playwright/test'; import { BasePO } from '@agnos-ui/base-po'; export declare class AccordionPO extends BasePO { private readonly selectors; getComponentSelector(): string; /** * Gets the locators of the items containing the header and the body-container inside * the accordion */ get locatorAccordionItems(): Locator; /** * Gets the locators of the item specified by the itemIndex containing the header and the body-container inside * the accordion */ locatorAccordionItem(itemIndex: number): Locator; get locatorAccordionCBodyContainers(): Locator; locatorAccordionBodyContainer(bodyContainerIndex: number): Locator; /** * Gets the locator of the bodies of the accordion. */ get locatorAccordionBodies(): Locator; locatorAccordionBody(bodyIndex: number): Locator; get locatorAccordionHeaders(): Locator; locatorAccordionHeader(headerIndex: number): Locator; /** * Gets the locators of the buttons that handle the accordion, present in the accordion header. * It does not get the locators of the buttons present in the body, added by the developer. */ get locatorAccordionButtons(): Locator; locatorAccordionButton(buttonIndex: number): Locator; state(): Promise<{ rootClasses: string[]; items: { classes: string[]; id: string; isInDOM: boolean; bodyContainerId: string | undefined; buttonId: string | undefined; expanded: string | null | undefined; disabled: string | null | undefined; labeledBy: string | null | undefined; buttonControls: string | null | undefined; }[]; }>; }