@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
25 lines (24 loc) • 1.27 kB
TypeScript
import { ApiHelpers } from "./ApiHelpers";
export declare class ScriptApiHelper {
api: ApiHelpers;
constructor(api: ApiHelpers);
get(path: string): Promise<any>;
doesExist(path: string): Promise<boolean>;
create(name: string, content: string, parentPath?: null): Promise<string>;
updateName(path: string, newName: string): Promise<string | undefined>;
updateContent(path: string, newContent: string): Promise<import("playwright-core").APIResponse>;
delete(path: string): Promise<import("playwright-core").APIResponse>;
getChildren(path: string): Promise<any>;
getItems(paths: string[]): Promise<any>;
getAllAtRoot(): Promise<import("playwright-core").APIResponse>;
doesNameExist(name: string): Promise<any>;
getByName(name: string): Promise<any>;
private recurseDeleteChildren;
private recurseChildren;
ensureNameNotExists(name: string): Promise<import("playwright-core").APIResponse | null>;
getFolder(path: string): Promise<any>;
doesFolderExist(path: string): Promise<boolean>;
createFolder(name: string, parentPath?: string): Promise<string | undefined>;
deleteFolder(path: string): Promise<import("playwright-core").APIResponse>;
createDefaultScript(name: string): Promise<string>;
}