@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
27 lines (26 loc) • 1.51 kB
TypeScript
import { Page } from "@playwright/test";
import { UiBaseLocators } from "./UiBaseLocators";
export declare class ScriptUiHelper extends UiBaseLocators {
private readonly newJavascriptFileBtn;
private readonly scriptTree;
private readonly newFolderThreeDots;
private readonly scriptCreateModal;
constructor(page: Page);
clickActionsMenuForScript(name: string): Promise<void>;
createScriptFolder(folderName: string): Promise<void>;
clickActionsMenuAtRoot(): Promise<void>;
clickRootFolderCaretButton(): Promise<void>;
clickNewJavascriptFileButton(): Promise<void>;
clickSaveButtonAndWaitForScriptToBeCreated(): Promise<string | undefined>;
clickSaveButtonAndWaitForScriptToBeUpdated(): Promise<string | undefined>;
goToScript(scriptName: string): Promise<void>;
enterScriptName(scriptContent: string): Promise<void>;
enterScriptContent(scriptContent: string): Promise<void>;
openScriptAtRoot(scriptName: string): Promise<void>;
reloadScriptTree(): Promise<void>;
isScriptRootTreeItemVisible(scriptName: string, isVisible?: boolean, toReload?: boolean): Promise<void>;
clickConfirmToDeleteButtonAndWaitForScriptToBeDeleted(): Promise<string | undefined>;
clickDeleteAndConfirmButtonAndWaitForScriptToBeDeleted(): Promise<string | undefined>;
createScriptFolderAndWaitForScriptToBeCreated(folderName: string): Promise<string | undefined>;
renameAndWaitForScriptToBeRenamed(newName: string): Promise<string | undefined>;
}