@umbraco/playwright-testhelpers 15.0.39 → 15.0.41
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 -0
- package/dist/lib/helpers/ContentUiHelper.js +6 -1
- 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/DataTypeUiHelper.js +0 -4
- package/dist/lib/helpers/DataTypeUiHelper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -379,4 +379,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
379
379
|
doesRemoveAtContainText(text: string): Promise<void>;
|
|
380
380
|
clickSelectAllCheckbox(): Promise<void>;
|
|
381
381
|
doesSchedulePublishModalButtonContainDisabledTag(hasDisabledTag?: Boolean): Promise<void>;
|
|
382
|
+
clickInlineBlockCaretButtonForName(blockEditorName: string, index?: number): Promise<void>;
|
|
382
383
|
}
|
|
@@ -279,7 +279,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
279
279
|
this.umbDocumentCollection = page.locator('umb-document-collection');
|
|
280
280
|
this.documentTableColumnName = this.listView.locator('umb-document-table-column-name');
|
|
281
281
|
//Block Grid - Block List
|
|
282
|
-
this.addBlockElementBtn = page.locator('uui-button-group uui-button').first().filter({ has: page.locator('a#button') });
|
|
282
|
+
this.addBlockElementBtn = page.locator('uui-button-group > uui-button').first().filter({ has: page.locator('a#button') });
|
|
283
283
|
this.formValidationMessage = page.locator('#splitViews umb-form-validation-message #messages');
|
|
284
284
|
this.blockName = page.locator('#editor [slot="name"]');
|
|
285
285
|
this.addBlockSettingsTabBtn = page.locator('umb-body-layout').getByRole('tab', { name: 'Settings' });
|
|
@@ -1272,6 +1272,11 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
return await (0, test_1.expect)(button).toHaveAttribute('disabled', '');
|
|
1274
1274
|
}
|
|
1275
|
+
async clickInlineBlockCaretButtonForName(blockEditorName, index = 0) {
|
|
1276
|
+
const caretButtonLocator = this.blockListEntry.filter({ hasText: blockEditorName }).nth(index).locator('uui-symbol-expand svg');
|
|
1277
|
+
await (0, test_1.expect)(caretButtonLocator).toBeVisible();
|
|
1278
|
+
await caretButtonLocator.click();
|
|
1279
|
+
}
|
|
1275
1280
|
}
|
|
1276
1281
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1277
1282
|
//# sourceMappingURL=ContentUiHelper.js.map
|