@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
25 lines (24 loc) • 1.56 kB
TypeScript
import { ApiHelpers } from "../ApiHelpers";
export declare class ContentDeliveryApiHelper {
api: ApiHelpers;
constructor(api: ApiHelpers);
getAllContentItems(): Promise<any>;
getContentItemWithId(id: string, extraHeaders?: {
[key: string]: string;
}, expand?: string, fields?: string): Promise<import("playwright-core").APIResponse>;
getContentItemWithRoute(route: string, extraHeaders?: {
[key: string]: string;
}): Promise<import("playwright-core").APIResponse>;
getContentItemsWithIds(ids: string[], extraHeaders?: {
[key: string]: string;
}): Promise<import("playwright-core").APIResponse>;
getContentItemsFromAQuery(extraHeaders?: {
[key: string]: string;
}, fetch?: string, filter?: string, sort?: string, skip?: number, take?: number): Promise<import("playwright-core").APIResponse>;
verifyBasicPropertiesForContentItem(contentName: string, contentItemJson: any): Promise<void>;
verifyRoutePropertyForContentItem(contentName: string, contentItemJson: any, expectedRoutePath?: string): Promise<void>;
verifyEditorialPropertiesForInvariantContentItem(contentName: string, contentItemJson: any): Promise<void>;
verifyCulturePropertyForContentItem(contentName: string, contentItemJson: any, isVariesByCulture?: boolean): Promise<void>;
verifyEditorialPropertiesForContentItemWithMultiURLPicker(contentName: string, contentItemJson: any, pickerType: string): Promise<void>;
verifyPropertiesForMediaItem(mediaName: string, mediaItemJson: any): Promise<void>;
}