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