@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
25 lines (24 loc) • 1.18 kB
TypeScript
import { ApiHelpers } from "./ApiHelpers";
export declare class DictionaryApiHelper {
api: ApiHelpers;
constructor(api: ApiHelpers);
get(id: string): Promise<any>;
doesExist(id: string): Promise<boolean>;
create(name: string, translations?: {
isoCode: string;
translation: string;
}[], parentId?: string): Promise<string | undefined>;
update(id: string, dictionary: object): Promise<import("playwright-core").APIResponse>;
delete(id: string): Promise<import("playwright-core").APIResponse>;
getAllAtRoot(): Promise<import("playwright-core").APIResponse>;
getItems(ids: string[]): Promise<any>;
getChildren(id: string): Promise<any>;
private recurseDeleteChildren;
private recurseChildren;
getByName(name: string): Promise<any>;
doesNameExist(name: string): Promise<any>;
ensureNameNotExists(name: string): Promise<void>;
export(id: string, includeChildren: boolean): Promise<import("playwright-core").APIResponse>;
import(temporaryFileId: string, parentId: string): Promise<import("playwright-core").APIResponse>;
createDefaultDictionary(name: string): Promise<string | undefined>;
}