@umbraco/playwright-testhelpers 17.0.19 → 17.0.21
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 +15 -3
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentTypeApiHelper.d.ts +5 -0
- package/dist/lib/helpers/DocumentTypeApiHelper.js +35 -0
- package/dist/lib/helpers/DocumentTypeApiHelper.js.map +1 -1
- package/dist/lib/helpers/LogViewerUiHelper.js +1 -1
- package/dist/lib/helpers/LogViewerUiHelper.js.map +1 -1
- package/dist/lib/helpers/UserUiHelper.js +1 -1
- package/dist/lib/helpers/UserUiHelper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -354,6 +354,8 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
354
354
|
clickActionsMenuForProperty(groupName: string, propertyName: string): Promise<void>;
|
|
355
355
|
clickAddBlockGridElementWithName(elementTypeName: string): Promise<void>;
|
|
356
356
|
clickEditBlockListEntryWithName(blockListElementName: string): Promise<void>;
|
|
357
|
+
clickEditBlockGridEntryWithName(blockGridElementName: string): Promise<void>;
|
|
358
|
+
goToRTEBlockWithName(groupName: string, propertyName: string, blockName: string, index?: number): Promise<void>;
|
|
357
359
|
clickSelectBlockElementWithName(elementTypeName: string): Promise<void>;
|
|
358
360
|
clickSelectBlockElementInAreaWithName(elementTypeName: string): Promise<void>;
|
|
359
361
|
clickBlockElementWithName(elementTypeName: string): Promise<void>;
|
|
@@ -241,7 +241,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
241
241
|
// Culture and Hostname
|
|
242
242
|
this.cultureAndHostnamesBtn = page.getByLabel(/^Culture and Hostnames(…)?$/);
|
|
243
243
|
this.hostNameItem = page.locator('.hostname-item');
|
|
244
|
-
this.cultureLanguageDropdownBox = this.
|
|
244
|
+
this.cultureLanguageDropdownBox = this.page.locator('[label="Culture"]').getByLabel('combobox-input');
|
|
245
245
|
this.hostnameTxt = page.getByLabel('Hostname', { exact: true });
|
|
246
246
|
this.hostnameLanguageDropdownBox = this.hostNameItem.locator('[label="Culture"]').getByLabel('combobox-input');
|
|
247
247
|
this.deleteHostnameBtn = this.hostNameItem.locator('[name="icon-trash"] svg');
|
|
@@ -541,8 +541,8 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
541
541
|
async selectCultureLanguageOption(option) {
|
|
542
542
|
await (0, test_1.expect)(this.cultureLanguageDropdownBox).toBeVisible();
|
|
543
543
|
await this.cultureLanguageDropdownBox.click();
|
|
544
|
-
await (0, test_1.expect)(this.
|
|
545
|
-
await this.
|
|
544
|
+
await (0, test_1.expect)(this.page.getByText(option, { exact: true })).toBeVisible();
|
|
545
|
+
await this.page.getByText(option, { exact: true }).click();
|
|
546
546
|
}
|
|
547
547
|
async selectHostnameLanguageOption(option, index = 0) {
|
|
548
548
|
await this.hostnameLanguageDropdownBox.nth(index).click();
|
|
@@ -1131,6 +1131,18 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1131
1131
|
await (0, test_1.expect)(this.blockListEntry.filter({ hasText: blockListElementName }).getByLabel('edit')).toBeVisible();
|
|
1132
1132
|
await this.blockListEntry.filter({ hasText: blockListElementName }).getByLabel('edit').click({ force: true });
|
|
1133
1133
|
}
|
|
1134
|
+
async clickEditBlockGridEntryWithName(blockGridElementName) {
|
|
1135
|
+
await (0, test_1.expect)(this.blockGridEntry.filter({ hasText: blockGridElementName })).toBeVisible();
|
|
1136
|
+
await this.blockGridEntry.filter({ hasText: blockGridElementName }).hover();
|
|
1137
|
+
await (0, test_1.expect)(this.blockGridEntry.filter({ hasText: blockGridElementName }).getByLabel('edit')).toBeVisible();
|
|
1138
|
+
await this.blockGridEntry.filter({ hasText: blockGridElementName }).getByLabel('edit').click({ force: true });
|
|
1139
|
+
}
|
|
1140
|
+
async goToRTEBlockWithName(groupName, propertyName, blockName, index = 0) {
|
|
1141
|
+
const rteProperty = this.workspaceEditTab.filter({ hasText: groupName }).locator(this.workspaceEditProperties).filter({ hasText: propertyName });
|
|
1142
|
+
const rteBlockLocator = rteProperty.locator(this.rteBlock).filter({ hasText: blockName }).nth(index);
|
|
1143
|
+
await (0, test_1.expect)(rteBlockLocator).toBeVisible();
|
|
1144
|
+
await rteBlockLocator.click();
|
|
1145
|
+
}
|
|
1134
1146
|
async clickSelectBlockElementWithName(elementTypeName) {
|
|
1135
1147
|
await (0, test_1.expect)(this.page.getByRole('button', { name: elementTypeName, exact: true })).toBeVisible();
|
|
1136
1148
|
await this.page.getByRole('button', { name: elementTypeName, exact: true }).click();
|