@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
36 lines (35 loc) • 1.67 kB
TypeScript
import { Page } from "@playwright/test";
import { UiBaseLocators } from "./UiBaseLocators";
export declare class DictionaryUiHelper extends UiBaseLocators {
private readonly createDictionaryItemBtn;
private readonly dictionaryNameTxt;
private readonly searchTxt;
private readonly exportBtn;
private readonly includeDescendantsCheckbox;
private readonly importBtn;
private readonly importFileTxt;
private readonly emptySearchResultMessage;
private readonly dictionaryList;
private readonly dictionaryListRows;
private readonly dictionaryTree;
private readonly dictionaryCollection;
private readonly exportModalBtn;
private readonly importModalBtn;
constructor(page: Page);
clickCreateDictionaryItemButton(): Promise<void>;
enterDictionaryName(name: string): Promise<void>;
clickActionsMenuForDictionary(name: string): Promise<void>;
enterSearchKeywordAndPressEnter(keyword: string): Promise<void>;
clickExportButton(): Promise<void>;
clickImportButton(): Promise<void>;
waitForDictionaryToBeCreated(): Promise<void>;
waitForDictionaryToBeDeleted(): Promise<void>;
waitForDictionaryToBeImported(): Promise<void>;
deleteDictionary(): Promise<void>;
doesDictionaryListHaveText(text: string): Promise<boolean>;
exportDictionary(includesDescendants: boolean): Promise<string>;
importDictionary(filePath: string): Promise<void>;
isSearchResultMessageDisplayEmpty(message: string): Promise<void>;
isDictionaryTreeItemVisible(dictionaryName: string, isVisible?: boolean): Promise<void>;
doesDictionaryCollectionContainText(text: string): Promise<void>;
}