UNPKG

@umbraco/playwright-testhelpers

Version:

Test helpers for making playwright tests for Umbraco solutions

17 lines (16 loc) 984 B
import { ApiHelpers } from "./ApiHelpers"; export declare class LanguageApiHelper { api: ApiHelpers; constructor(api: ApiHelpers); get(isoCode: string): Promise<any>; doesExist(isoCode: string): Promise<boolean>; create(name: string, isDefault: boolean | undefined, isMandatory: boolean | undefined, isoCode: string, fallbackIsoCode?: string): Promise<string | undefined>; update(isoCode: string, language: object): Promise<import("playwright-core").APIResponse>; delete(isoCode: string): Promise<import("playwright-core").APIResponse>; getByName(name: string): Promise<any>; ensureNameNotExists(name: string): Promise<import("playwright-core").APIResponse | null>; ensureIsoCodeNotExists(isoCode: string): Promise<import("playwright-core").APIResponse | null>; getAll(): Promise<import("playwright-core").APIResponse>; createDanishLanguage(): Promise<string | undefined>; createVietnameseLanguage(): Promise<string | undefined>; }