@agnos-ui/page-objects
Version:
Page objects to be used when testing AgnosUI-based applications with Playwright.
38 lines (37 loc) • 1.03 kB
TypeScript
import type { Locator } from '@playwright/test';
import { BasePO } from '@agnos-ui/base-po';
export declare const modalSelectors: {
rootComponent: string;
closeButton: string;
backdrop: string;
header: string;
title: string;
body: string;
footer: string;
};
export declare class ModalPO extends BasePO {
selectors: {
rootComponent: string;
closeButton: string;
backdrop: string;
header: string;
title: string;
body: string;
footer: string;
};
getComponentSelector(): string;
get locatorHeader(): Locator;
get locatorTitle(): Locator;
get locatorBody(): Locator;
get locatorFooter(): Locator;
get locatorCloseButton(): Locator;
get locatorBackdrop(): Locator;
state(): Promise<{
rootClasses: string[];
header: string | undefined;
title: string | undefined;
body: string | undefined;
footer: string | undefined;
closeButton: string | null | undefined;
}>;
}