UNPKG

@agnos-ui/page-objects

Version:

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

27 lines (26 loc) 741 B
import { BasePO } from '@agnos-ui/base-po'; import type { Locator } from '@playwright/test'; export declare const treeSelectors: { rootComponent: string; itemContainer: string; itemToggle: string; itemContents: string; }; export declare class TreePO extends BasePO { selectors: { rootComponent: string; itemContainer: string; itemToggle: string; itemContents: string; }; getComponentSelector(): string; get locatorItemToggle(): Locator; get locatorItemContainer(): Locator; itemContainerState(): Promise<{ ariaSelected: string | null; ariaExpanded: string | null; }[]>; itemToggleState(): Promise<{ ariaLabel: string | null; }[]>; }