@umbraco/playwright-testhelpers 16.0.51 → 16.0.52
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 +8 -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
|
@@ -170,6 +170,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
170
170
|
private readonly treePickerSearchTxt;
|
|
171
171
|
private readonly mediaPickerSearchTxt;
|
|
172
172
|
private readonly memberPickerSearchTxt;
|
|
173
|
+
private readonly propertyActionMenu;
|
|
173
174
|
constructor(page: Page);
|
|
174
175
|
enterContentName(name: string): Promise<void>;
|
|
175
176
|
clickSaveAndPublishButton(): Promise<void>;
|
|
@@ -429,4 +430,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
429
430
|
enterSearchKeywordInMediaPickerModal(keyword: string): Promise<void>;
|
|
430
431
|
enterSearchKeywordInMemberPickerModal(keyword: string): Promise<void>;
|
|
431
432
|
isContentNameReadOnly(): Promise<void>;
|
|
433
|
+
clickPropertyActionWithName(name: string): Promise<void>;
|
|
432
434
|
}
|
|
@@ -174,6 +174,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
174
174
|
treePickerSearchTxt;
|
|
175
175
|
mediaPickerSearchTxt;
|
|
176
176
|
memberPickerSearchTxt;
|
|
177
|
+
propertyActionMenu;
|
|
177
178
|
constructor(page) {
|
|
178
179
|
super(page);
|
|
179
180
|
this.saveContentBtn = page.getByTestId('workspace-action:Umb.WorkspaceAction.Document.Save');
|
|
@@ -353,6 +354,8 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
353
354
|
this.treePickerSearchTxt = this.page.locator('umb-tree-picker-modal #input');
|
|
354
355
|
this.mediaPickerSearchTxt = this.page.locator('umb-media-picker-modal #search #input');
|
|
355
356
|
this.memberPickerSearchTxt = this.page.locator('umb-member-picker-modal #input');
|
|
357
|
+
// Property Actions
|
|
358
|
+
this.propertyActionMenu = page.locator('#property-action-popover umb-popover-layout');
|
|
356
359
|
}
|
|
357
360
|
async enterContentName(name) {
|
|
358
361
|
await (0, test_1.expect)(this.contentNameTxt).toBeVisible();
|
|
@@ -1456,6 +1459,11 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1456
1459
|
async isContentNameReadOnly() {
|
|
1457
1460
|
await (0, test_1.expect)(this.contentNameTxt).toHaveAttribute('readonly');
|
|
1458
1461
|
}
|
|
1462
|
+
async clickPropertyActionWithName(name) {
|
|
1463
|
+
const actionLocator = this.propertyActionMenu.locator('umb-property-action uui-menu-item[label="' + name + '"]');
|
|
1464
|
+
await (0, test_1.expect)(actionLocator).toBeVisible();
|
|
1465
|
+
await actionLocator.click();
|
|
1466
|
+
}
|
|
1459
1467
|
}
|
|
1460
1468
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1461
1469
|
//# sourceMappingURL=ContentUiHelper.js.map
|