UNPKG

@umbraco/playwright-testhelpers

Version:

Test helpers for making playwright tests for Umbraco solutions

24 lines (23 loc) 1.2 kB
import { Page } from "@playwright/test"; import { UiBaseLocators } from "./UiBaseLocators"; export declare class HealthCheckUiHelper extends UiBaseLocators { private readonly healthCheckTab; private readonly healthCheckGroupBox; private readonly performanceAllChecksBtn; private readonly positiveTag; private readonly warningTag; private readonly dangerTag; private readonly headline; private readonly healthCheckGroup; constructor(page: Page); clickHealthCheckTab(): Promise<void>; checkHealthCheckGroupCount(): Promise<number>; clickPerformanceAllChecksButton(): Promise<void>; clickHeathCheckGroupByName(groupName: string): Promise<void>; isHealthCheckGroupVisible(groupName: string): Promise<void>; doesHeathCheckGroupHaveSuccessItemsCount(healthCheckGroupName: string, count: number): Promise<void>; doesHeathCheckGroupHaveWarningItemsCount(healthCheckGroupName: string, count: number): Promise<void>; doesHeathCheckGroupHaveErrorItemsCount(healthCheckGroupName: string, count: number): Promise<void>; isCheckNameVisible(name: string): Promise<void>; isCheckDescriptionVisible(description: string): Promise<void>; }