@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
31 lines (30 loc) • 1.67 kB
TypeScript
import { Page } from "@playwright/test";
import { UiBaseLocators } from "./UiBaseLocators";
export declare class StylesheetUiHelper extends UiBaseLocators {
private readonly newStylesheetBtn;
private readonly stylesheetNameTxt;
private readonly addRTEBtn;
private readonly styleNameTxt;
private readonly styleSelectorTxt;
private readonly styleStylesTxt;
private readonly newRichTextEditorStylesheetBtn;
private readonly stylesheetTree;
private readonly newFolderThreeDots;
constructor(page: Page);
clickActionsMenuForStylesheet(name: string): Promise<void>;
createStylesheetFolder(folderName: string): Promise<void>;
clickActionsMenuAtRoot(): Promise<void>;
clickRootFolderCaretButton(): Promise<void>;
clickNewStylesheetButton(): Promise<void>;
clickNewRichTextEditorStylesheetButton(): Promise<void>;
enterStylesheetName(stylesheetName: string): Promise<void>;
enterStylesheetContent(stylesheetContent: string): Promise<void>;
addRTEStyle(styleName: string, styleSelector: string, styleStyles: string): Promise<void>;
openStylesheetByNameAtRoot(stylesheetName: string): Promise<void>;
editRTEStyle(styleName: string, newStyleName: string, newStyleSelector: string, newStyleStyles: string): Promise<void>;
fillRTEStyleForm(styleName: string, styleSelector: string, styleStyles: string): Promise<void>;
removeRTEStyle(styleName: string): Promise<void>;
reloadStylesheetTree(): Promise<void>;
isStylesheetRootTreeItemVisible(stylesheetName: string, isVisible?: boolean, toReload?: boolean): Promise<void>;
goToStylesheet(stylesheetName: string): Promise<void>;
}