@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
17 lines (16 loc) • 1.04 kB
TypeScript
import { ApiHelpers } from "./ApiHelpers";
export declare class PackageApiHelper {
api: ApiHelpers;
constructor(api: ApiHelpers);
ensureNameNotExists(name: string): Promise<import("playwright-core").APIResponse | null>;
doesExist(id: string): Promise<boolean>;
doesNameExist(name: string): Promise<boolean>;
create(name: string, contentLoadChildNodes?: boolean, mediaLoadChildNodes?: boolean, contentNodeId?: string, mediaIds?: string[], documentTypes?: any, mediaTypes?: any, dataTypes?: any, templates?: any, partialViews?: any, stylesheets?: any, scripts?: any, languages?: any, dictionaryItems?: any): Promise<string | undefined>;
getByName(name: string): Promise<any>;
get(id: string): Promise<any>;
getAll(): Promise<any>;
update(id: string, packageData: any): Promise<import("playwright-core").APIResponse>;
delete(id: string): Promise<import("playwright-core").APIResponse>;
download(id: string): Promise<string>;
createEmptyPackage(name: string): Promise<string | undefined>;
}