@umbraco/playwright-testhelpers 15.0.40 → 15.0.42
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 +1 -1
- package/dist/lib/helpers/ContentUiHelper.js +6 -4
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/DataTypeApiHelper.d.ts +2 -0
- package/dist/lib/helpers/DataTypeApiHelper.js +24 -0
- package/dist/lib/helpers/DataTypeApiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentTypeUiHelper.js +1 -1
- package/dist/lib/helpers/DocumentTypeUiHelper.js.map +1 -1
- package/dist/lib/helpers/UiBaseLocators.js +5 -4
- package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -101,7 +101,6 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
101
101
|
private readonly selectLoginPageDocument;
|
|
102
102
|
private readonly selectErrorPageDocument;
|
|
103
103
|
private readonly rollbackItem;
|
|
104
|
-
private readonly expandChildItemsForContent;
|
|
105
104
|
private readonly actionsMenu;
|
|
106
105
|
private readonly linkToDocumentBtn;
|
|
107
106
|
private readonly linkToMediaBtn;
|
|
@@ -379,4 +378,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
379
378
|
doesRemoveAtContainText(text: string): Promise<void>;
|
|
380
379
|
clickSelectAllCheckbox(): Promise<void>;
|
|
381
380
|
doesSchedulePublishModalButtonContainDisabledTag(hasDisabledTag?: Boolean): Promise<void>;
|
|
381
|
+
clickInlineBlockCaretButtonForName(blockEditorName: string, index?: number): Promise<void>;
|
|
382
382
|
}
|
|
@@ -105,7 +105,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
105
105
|
selectLoginPageDocument;
|
|
106
106
|
selectErrorPageDocument;
|
|
107
107
|
rollbackItem;
|
|
108
|
-
expandChildItemsForContent;
|
|
109
108
|
actionsMenu;
|
|
110
109
|
linkToDocumentBtn;
|
|
111
110
|
linkToMediaBtn;
|
|
@@ -271,7 +270,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
271
270
|
this.selectLoginPageDocument = page.locator('.select-item').filter({ hasText: 'Login Page' }).locator('umb-input-document');
|
|
272
271
|
this.selectErrorPageDocument = page.locator('.select-item').filter({ hasText: 'Error Page' }).locator('umb-input-document');
|
|
273
272
|
this.rollbackItem = page.locator('.rollback-item');
|
|
274
|
-
this.expandChildItemsForContent = page.getByLabel('Expand child items for Content');
|
|
275
273
|
this.actionsMenu = page.locator('uui-scroll-container');
|
|
276
274
|
this.linkToDocumentBtn = this.linkPickerModal.locator('[data-mark="action:document"] #button');
|
|
277
275
|
this.linkToMediaBtn = this.linkPickerModal.locator('[data-mark="action:media"] #button');
|
|
@@ -279,7 +277,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
279
277
|
this.umbDocumentCollection = page.locator('umb-document-collection');
|
|
280
278
|
this.documentTableColumnName = this.listView.locator('umb-document-table-column-name');
|
|
281
279
|
//Block Grid - Block List
|
|
282
|
-
this.addBlockElementBtn = page.locator('uui-button-group uui-button').first().filter({ has: page.locator('a#button') });
|
|
280
|
+
this.addBlockElementBtn = page.locator('uui-button-group > uui-button').first().filter({ has: page.locator('a#button') });
|
|
283
281
|
this.formValidationMessage = page.locator('#splitViews umb-form-validation-message #messages');
|
|
284
282
|
this.blockName = page.locator('#editor [slot="name"]');
|
|
285
283
|
this.addBlockSettingsTabBtn = page.locator('umb-body-layout').getByRole('tab', { name: 'Settings' });
|
|
@@ -856,7 +854,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
856
854
|
await this.moveToBtn.click();
|
|
857
855
|
}
|
|
858
856
|
async moveToContentWithName(parentNames, moveTo) {
|
|
859
|
-
await this.expandChildItemsForContent.click();
|
|
860
857
|
for (const contentName of parentNames) {
|
|
861
858
|
await this.container.getByLabel('Expand child items for ' + contentName).click();
|
|
862
859
|
}
|
|
@@ -1272,6 +1269,11 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1272
1269
|
}
|
|
1273
1270
|
return await (0, test_1.expect)(button).toHaveAttribute('disabled', '');
|
|
1274
1271
|
}
|
|
1272
|
+
async clickInlineBlockCaretButtonForName(blockEditorName, index = 0) {
|
|
1273
|
+
const caretButtonLocator = this.blockListEntry.filter({ hasText: blockEditorName }).nth(index).locator('uui-symbol-expand svg');
|
|
1274
|
+
await (0, test_1.expect)(caretButtonLocator).toBeVisible();
|
|
1275
|
+
await caretButtonLocator.click();
|
|
1276
|
+
}
|
|
1275
1277
|
}
|
|
1276
1278
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1277
1279
|
//# sourceMappingURL=ContentUiHelper.js.map
|