UNPKG

@umbraco/playwright-testhelpers

Version:

Test helpers for making playwright tests for Umbraco solutions

24 lines (23 loc) 2.17 kB
import { ApiHelpers } from "./ApiHelpers"; export declare class DocumentBlueprintApiHelper { api: ApiHelpers; constructor(api: ApiHelpers); get(id: string): Promise<any>; doesExist(id: string): Promise<boolean>; create(documentBlueprint: any): Promise<string | undefined>; delete(id: string): Promise<number | undefined>; update(id: string, documentBlueprint: any): Promise<import("playwright-core").APIResponse | undefined>; getAllAtRoot(): Promise<import("playwright-core").APIResponse>; getChildren(id: string): Promise<any>; doesNameExist(name: string): Promise<any>; private recurseDeleteChildren; private recurseChildren; getByName(name: string): Promise<any>; ensureNameNotExists(name: string): Promise<number | null | undefined>; createDefaultDocumentBlueprint(documentBlueprintName: string, documentTypeId: string): Promise<string | undefined>; createFromDocument(documentBlueprintName: string, documentId: string, parentId?: string): Promise<string | undefined>; createDocumentBlueprintWithTextBoxValue(documentBlueprintName: string, documentTypeId: string, dataTypeName: string, text: string): Promise<string | undefined>; createDefaultDocumentBlueprintWithABlockListEditorAndBlockWithValue(documentBlueprintName: string, documentTypeName: string, blockListDataTypeName: string, elementTypeId: string, elementTypePropertyAlias: string, elementTypePropertyEditorAlias: string, elementTypePropertyValue: string, groupName: string): Promise<string | undefined>; createDefaultDocumentBlueprintWithABlockGridEditorAndBlockWithValue(documentBlueprintName: string, documentTypeName: string, blockGridDataTypeName: string, elementTypeId: string, elementTypePropertyAlias: string, elementTypePropertyEditorAlias: string, elementTypePropertyValue: string, groupName?: string): Promise<string | undefined>; createDocumenBlueprintWithEnglishCultureAndDanishCultureAndTextBoxValue(documentBlueprintEnglishName: string, documentBlueprintDanishName: string, documentTypeId: string, dataTypeName: string, textContent: string, varyByCultureForText?: boolean): Promise<string | undefined>; }