UNPKG

@agnos-ui/page-objects

Version:

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

50 lines (49 loc) 1.39 kB
import { BasePO } from '@agnos-ui/base-po'; import type { Locator } from '@playwright/test'; export declare const drawerSelectors: { rootComponent: string; backdrop: string; header: string; body: string; container: string; splitter: string; closeButton: string; }; export declare class DrawerPO extends BasePO { readonly selectors: { rootComponent: string; backdrop: string; header: string; body: string; container: string; splitter: string; closeButton: string; }; getComponentSelector(): string; get locatorHeader(): Locator; get locatorBody(): Locator; get locatorBackdrop(): Locator; get locatorContainer(): Locator; get locatorSplitter(): Locator; get locatorCloseButton(): Locator; /** * Hovers the mouse over the center of a splitter element. * * @returns A promise that resolves to an object containing the absolute x and y coordinates * of the hover position */ hoverOnSplitter(): Promise<{ x: number; y: number; }>; state(): Promise<{ rootClasses: string[]; header: string | undefined; body: string | undefined; }>; statePosition(): Promise<{ '--bs-drawer-size': string; '--bs-drawer-size-min': string; '--bs-drawer-size-max': string; }>; }