@umbraco/playwright-testhelpers 16.0.33 → 16.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/helpers/ContentUiHelper.d.ts +2 -0
- package/dist/lib/helpers/ContentUiHelper.js +5 -0
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/UiBaseLocators.d.ts +1 -0
- package/dist/lib/helpers/UiBaseLocators.js +3 -0
- package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -166,6 +166,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
166
166
|
private readonly documentVariantLanguageItem;
|
|
167
167
|
private readonly styleSelectBtn;
|
|
168
168
|
private readonly cascadingMenuContainer;
|
|
169
|
+
private readonly modalFormValidationMessage;
|
|
169
170
|
constructor(page: Page);
|
|
170
171
|
enterContentName(name: string): Promise<void>;
|
|
171
172
|
clickSaveAndPublishButton(): Promise<void>;
|
|
@@ -417,4 +418,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
417
418
|
waitForContentToBePublished(): Promise<void>;
|
|
418
419
|
waitForRecycleBinToBeEmptied(): Promise<void>;
|
|
419
420
|
clickBlockElementInRTEWithName(elementTypeName: string): Promise<void>;
|
|
421
|
+
doesModalFormValidationMessageContainText(text: string): Promise<void>;
|
|
420
422
|
}
|
|
@@ -170,6 +170,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
170
170
|
documentVariantLanguageItem;
|
|
171
171
|
styleSelectBtn;
|
|
172
172
|
cascadingMenuContainer;
|
|
173
|
+
modalFormValidationMessage;
|
|
173
174
|
constructor(page) {
|
|
174
175
|
super(page);
|
|
175
176
|
this.saveContentBtn = page.getByTestId('workspace-action:Umb.WorkspaceAction.Document.Save');
|
|
@@ -345,6 +346,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
345
346
|
// Tiptap - Style Select
|
|
346
347
|
this.styleSelectBtn = page.locator('uui-button[label="Style Select"]');
|
|
347
348
|
this.cascadingMenuContainer = page.locator('umb-cascading-menu-popover uui-scroll-container');
|
|
349
|
+
this.modalFormValidationMessage = this.sidebarModal.locator('umb-form-validation-message #messages');
|
|
348
350
|
}
|
|
349
351
|
async enterContentName(name) {
|
|
350
352
|
await (0, test_1.expect)(this.contentNameTxt).toBeVisible();
|
|
@@ -1409,6 +1411,9 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1409
1411
|
await (0, test_1.expect)(blockElementLocator).toBeVisible();
|
|
1410
1412
|
await blockElementLocator.click({ force: true });
|
|
1411
1413
|
}
|
|
1414
|
+
async doesModalFormValidationMessageContainText(text) {
|
|
1415
|
+
await (0, test_1.expect)(this.modalFormValidationMessage).toContainText(text);
|
|
1416
|
+
}
|
|
1412
1417
|
}
|
|
1413
1418
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1414
1419
|
//# sourceMappingURL=ContentUiHelper.js.map
|