UNPKG

@umbraco/playwright-testhelpers

Version:

Test helpers for making playwright tests for Umbraco solutions

23 lines (22 loc) 1.15 kB
import { Page } from "@playwright/test"; import { UiBaseLocators } from "./UiBaseLocators"; export declare class StylesheetUiHelper extends UiBaseLocators { private readonly newStylesheetBtn; private readonly stylesheetNameTxt; private readonly stylesheetTree; constructor(page: Page); clickActionsMenuForStylesheet(name: string): Promise<void>; createStylesheetFolder(folderName: string): Promise<void>; clickActionsMenuAtRoot(): Promise<void>; clickRootFolderCaretButton(): Promise<void>; clickNewStylesheetButton(): Promise<void>; waitForStylesheetToBeCreated(): Promise<void>; waitForStylesheetToBeDeleted(): Promise<void>; waitForStylesheetToBeRenamed(): Promise<void>; enterStylesheetName(stylesheetName: string): Promise<void>; enterStylesheetContent(stylesheetContent: string): Promise<void>; openStylesheetByNameAtRoot(stylesheetName: string): Promise<void>; reloadStylesheetTree(): Promise<void>; isStylesheetRootTreeItemVisible(stylesheetName: string, isVisible?: boolean, toReload?: boolean): Promise<void>; goToStylesheet(stylesheetName: string): Promise<void>; }