UNPKG

@umbraco/playwright-testhelpers

Version:

Test helpers for making playwright tests for Umbraco solutions

15 lines (14 loc) 1.11 kB
import { ApiHelpers } from "../ApiHelpers"; export declare class ContentDeliveryApiHelper { api: ApiHelpers; constructor(api: ApiHelpers); getAllContentItems(): Promise<any>; getContentItemWithId(id: string): Promise<import("playwright-core").APIResponse>; getContentItemWithRoute(route: string): Promise<import("playwright-core").APIResponse>; getContentItemsWithIds(ids: string[]): Promise<import("playwright-core").APIResponse>; getContentItemsFromAQuery(fetch?: string, filter?: string, sort?: string, skip?: number, take?: number): Promise<import("playwright-core").APIResponse>; verifyBasicPropertiesForContentItem(contentName: string, contentItemJson: any): Promise<void>; verifyEditorialPropertiesForContentItem(contentName: string, contentItemJson: any, isVariesByCulture?: boolean): Promise<void>; verifyCulturePropertyForContentItem(contentName: string, contentItemJson: any, isVariesByCulture?: boolean): Promise<void>; verifyEditorialPropertiesForContentItemWithMultiURLPicker(contentName: string, contentItemJson: any, pickerType: string): Promise<void>; }