@umbraco/playwright-testhelpers 16.0.16 → 16.0.18
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/ConsoleErrorHelper.d.ts +9 -0
- package/dist/lib/helpers/ConsoleErrorHelper.js +39 -0
- package/dist/lib/helpers/ConsoleErrorHelper.js.map +1 -0
- package/dist/lib/helpers/ConstantHelper.d.ts +2 -0
- package/dist/lib/helpers/ConstantHelper.js +16 -14
- package/dist/lib/helpers/ConstantHelper.js.map +1 -1
- package/dist/lib/helpers/ContentRenderUiHelper.js +1 -1
- package/dist/lib/helpers/ContentRenderUiHelper.js.map +1 -1
- package/dist/lib/helpers/ContentUiHelper.d.ts +5 -5
- package/dist/lib/helpers/ContentUiHelper.js +29 -28
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/CurrentUserProfileUiHelper.js +1 -1
- package/dist/lib/helpers/CurrentUserProfileUiHelper.js.map +1 -1
- package/dist/lib/helpers/DataTypeUiHelper.d.ts +3 -1
- package/dist/lib/helpers/DataTypeUiHelper.js +66 -54
- package/dist/lib/helpers/DataTypeUiHelper.js.map +1 -1
- package/dist/lib/helpers/DictionaryUiHelper.js +3 -3
- package/dist/lib/helpers/DictionaryUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentBlueprintUiHelper.js +1 -1
- package/dist/lib/helpers/DocumentBlueprintUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentTypeUiHelper.js +2 -2
- package/dist/lib/helpers/DocumentTypeUiHelper.js.map +1 -1
- package/dist/lib/helpers/LanguageUiHelper.d.ts +3 -0
- package/dist/lib/helpers/LanguageUiHelper.js +9 -2
- package/dist/lib/helpers/LanguageUiHelper.js.map +1 -1
- package/dist/lib/helpers/MediaUiHelper.js +3 -3
- package/dist/lib/helpers/MediaUiHelper.js.map +1 -1
- package/dist/lib/helpers/MemberGroupUiHelper.js +1 -1
- package/dist/lib/helpers/MemberGroupUiHelper.js.map +1 -1
- package/dist/lib/helpers/MemberUiHelper.d.ts +2 -0
- package/dist/lib/helpers/MemberUiHelper.js +6 -0
- package/dist/lib/helpers/MemberUiHelper.js.map +1 -1
- package/dist/lib/helpers/NotificationConstantHelper.d.ts +1 -0
- package/dist/lib/helpers/NotificationConstantHelper.js +2 -1
- package/dist/lib/helpers/NotificationConstantHelper.js.map +1 -1
- package/dist/lib/helpers/PartialViewUiHelper.js +2 -2
- package/dist/lib/helpers/PartialViewUiHelper.js.map +1 -1
- package/dist/lib/helpers/ScriptUiHelper.js +2 -2
- package/dist/lib/helpers/ScriptUiHelper.js.map +1 -1
- package/dist/lib/helpers/StylesheetUiHelper.js +3 -3
- package/dist/lib/helpers/StylesheetUiHelper.js.map +1 -1
- package/dist/lib/helpers/UiBaseLocators.d.ts +27 -3
- package/dist/lib/helpers/UiBaseLocators.js +111 -32
- package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
- package/dist/lib/helpers/UserGroupApiHelper.d.ts +4 -2
- package/dist/lib/helpers/UserGroupApiHelper.js +52 -24
- package/dist/lib/helpers/UserGroupApiHelper.js.map +1 -1
- package/dist/lib/helpers/UserGroupUiHelper.d.ts +1 -1
- package/dist/lib/helpers/UserGroupUiHelper.js +3 -3
- package/dist/lib/helpers/UserGroupUiHelper.js.map +1 -1
- package/dist/lib/helpers/testExtension.js +14 -2
- package/dist/lib/helpers/testExtension.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -69,7 +69,6 @@ export declare class UiBaseLocators {
|
|
|
69
69
|
readonly aliasNameTxt: Locator;
|
|
70
70
|
readonly deleteFolderThreeDotsBtn: Locator;
|
|
71
71
|
readonly createLink: Locator;
|
|
72
|
-
readonly actionMenucreateBtn: Locator;
|
|
73
72
|
readonly insertValueBtn: Locator;
|
|
74
73
|
readonly insertPartialViewBtn: Locator;
|
|
75
74
|
readonly insertDictionaryItemBtn: Locator;
|
|
@@ -143,6 +142,8 @@ export declare class UiBaseLocators {
|
|
|
143
142
|
readonly validationMessage: Locator;
|
|
144
143
|
readonly successStateIcon: Locator;
|
|
145
144
|
readonly workspaceAction: Locator;
|
|
145
|
+
readonly entityAction: Locator;
|
|
146
|
+
readonly openEntityAction: Locator;
|
|
146
147
|
constructor(page: Page);
|
|
147
148
|
clickActionsMenuForNameInSectionSidebar(name: string): Promise<void>;
|
|
148
149
|
clickActionsMenuForName(name: string): Promise<void>;
|
|
@@ -213,7 +214,6 @@ export declare class UiBaseLocators {
|
|
|
213
214
|
isTextWithMessageVisible(message: string, isVisible?: boolean): Promise<void>;
|
|
214
215
|
clickCreateThreeDotsButton(): Promise<void>;
|
|
215
216
|
clickCreateButton(): Promise<void>;
|
|
216
|
-
clickActionsMenuCreateButton(): Promise<void>;
|
|
217
217
|
clickAddButton(): Promise<void>;
|
|
218
218
|
clickNewFolderThreeDotsButton(): Promise<void>;
|
|
219
219
|
clickEditorSettingsButton(index?: number): Promise<void>;
|
|
@@ -280,7 +280,7 @@ export declare class UiBaseLocators {
|
|
|
280
280
|
doesSuccessNotificationHaveText(text: string, isVisible?: boolean, deleteNotification?: boolean): Promise<void>;
|
|
281
281
|
doesErrorNotificationHaveText(text: string, isVisible?: boolean, deleteNotification?: boolean): Promise<void>;
|
|
282
282
|
isSectionWithNameVisible(sectionName: string, isVisible?: boolean): Promise<void>;
|
|
283
|
-
|
|
283
|
+
clickMediaWithName(name: string): Promise<void>;
|
|
284
284
|
clickChooseContentStartNodeButton(): Promise<void>;
|
|
285
285
|
clickChooseMediaStartNodeButton(): Promise<void>;
|
|
286
286
|
clickActionButton(): Promise<void>;
|
|
@@ -309,4 +309,28 @@ export declare class UiBaseLocators {
|
|
|
309
309
|
doesReferencesContainText(text: string): Promise<void>;
|
|
310
310
|
isValidationMessageVisible(message: string, isVisible?: boolean): Promise<void>;
|
|
311
311
|
isSuccessStateIconVisible(): Promise<void>;
|
|
312
|
+
isPropertyEditorUiWithNameReadOnly(name: string): Promise<void>;
|
|
313
|
+
isPropertyEditorUiWithNameVisible(name: string, isVisible?: boolean): Promise<void>;
|
|
314
|
+
clickEntityActionWithName(name: string): Promise<void>;
|
|
315
|
+
clickCreateActionMenuOption(): Promise<void>;
|
|
316
|
+
clickTrashActionMenuOption(): Promise<void>;
|
|
317
|
+
clickMoveToActionMenuOption(): Promise<void>;
|
|
318
|
+
clickCreateBlueprintActionMenuOption(): Promise<void>;
|
|
319
|
+
clickDuplicateToActionMenuOption(): Promise<void>;
|
|
320
|
+
clickPublishActionMenuOption(): Promise<void>;
|
|
321
|
+
clickUnpublishActionMenuOption(): Promise<void>;
|
|
322
|
+
clickRollbackActionMenuOption(): Promise<void>;
|
|
323
|
+
clickCultureAndHostnamesActionMenuOption(): Promise<void>;
|
|
324
|
+
clickPublicAccessActionMenuOption(): Promise<void>;
|
|
325
|
+
clickSortChildrenActionMenuOption(): Promise<void>;
|
|
326
|
+
clickNotificationsActionMenuOption(): Promise<void>;
|
|
327
|
+
clickReloadChildrenActionMenuOption(): Promise<void>;
|
|
328
|
+
clickDeleteActionMenuOption(): Promise<void>;
|
|
329
|
+
clickRestoreActionMenuOption(): Promise<void>;
|
|
330
|
+
clickRenameActionMenuOption(): Promise<void>;
|
|
331
|
+
clickCreateOptionsActionMenuOption(): Promise<void>;
|
|
332
|
+
clickExportActionMenuOption(): Promise<void>;
|
|
333
|
+
clickImportActionMenuOption(): Promise<void>;
|
|
334
|
+
clickUpdateActionMenuOption(): Promise<void>;
|
|
335
|
+
clickModalMenuItemWithName(name: string): Promise<void>;
|
|
312
336
|
}
|
|
@@ -73,7 +73,6 @@ class UiBaseLocators {
|
|
|
73
73
|
aliasNameTxt;
|
|
74
74
|
deleteFolderThreeDotsBtn;
|
|
75
75
|
createLink;
|
|
76
|
-
actionMenucreateBtn;
|
|
77
76
|
insertValueBtn;
|
|
78
77
|
insertPartialViewBtn;
|
|
79
78
|
insertDictionaryItemBtn;
|
|
@@ -147,6 +146,8 @@ class UiBaseLocators {
|
|
|
147
146
|
validationMessage;
|
|
148
147
|
successStateIcon;
|
|
149
148
|
workspaceAction;
|
|
149
|
+
entityAction;
|
|
150
|
+
openEntityAction;
|
|
150
151
|
constructor(page) {
|
|
151
152
|
this.page = page;
|
|
152
153
|
this.saveBtn = page.getByLabel('Save', { exact: true });
|
|
@@ -181,7 +182,6 @@ class UiBaseLocators {
|
|
|
181
182
|
this.renameModalBtn = page.locator('umb-rename-modal').getByLabel('Rename');
|
|
182
183
|
this.createBtn = page.getByRole('button', { name: /^Create(…)?$/ });
|
|
183
184
|
this.actionsMenuContainer = page.locator('uui-scroll-container');
|
|
184
|
-
this.actionMenucreateBtn = this.actionsMenuContainer.getByRole('button', { name: /^Create(…)?$/ });
|
|
185
185
|
this.successState = page.locator('[state="success"]');
|
|
186
186
|
this.chooseModalBtn = this.sidebarModal.locator('[look="primary"]').getByLabel('Choose');
|
|
187
187
|
this.addBtn = page.getByRole('button', { name: 'Add', exact: true });
|
|
@@ -234,7 +234,7 @@ class UiBaseLocators {
|
|
|
234
234
|
this.renameBtn = page.getByRole('button', { name: /^Rename(…)?$/ });
|
|
235
235
|
this.returnedItemsCount = page.locator('#results-count');
|
|
236
236
|
this.chooseRootContentBtn = page.getByLabel('Choose root document');
|
|
237
|
-
this.queryResults = page.locator('query-results');
|
|
237
|
+
this.queryResults = page.locator('.query-results');
|
|
238
238
|
this.reloadBtn = page.getByRole('button', { name: 'Reload', exact: true });
|
|
239
239
|
this.confirmToRemoveBtn = page.locator('#confirm').getByLabel('Remove');
|
|
240
240
|
this.typeGroups = page.locator('umb-content-type-design-editor-group');
|
|
@@ -255,14 +255,14 @@ class UiBaseLocators {
|
|
|
255
255
|
this.recycleBinBtn = page.getByLabel('Recycle Bin', { exact: true });
|
|
256
256
|
this.recycleBinMenuItem = page.locator('uui-menu-item[label="Recycle Bin"]');
|
|
257
257
|
this.recycleBinMenuItemCaretBtn = this.recycleBinMenuItem.locator('#caret-button');
|
|
258
|
-
this.gridBtn =
|
|
259
|
-
this.listBtn =
|
|
260
|
-
this.viewBundleBtn =
|
|
258
|
+
this.gridBtn = page.getByLabel('Grid');
|
|
259
|
+
this.listBtn = page.getByLabel('List');
|
|
260
|
+
this.viewBundleBtn = page.locator('umb-collection-view-bundle uui-button svg');
|
|
261
261
|
this.createDocumentBlueprintBtn = page.getByLabel(/^Create Document Blueprint(…)?$/);
|
|
262
262
|
this.chooseDocumentInputBtn = page.locator('umb-input-document').getByLabel('Choose');
|
|
263
263
|
this.chooseMediaInputBtn = page.locator('umb-input-media').getByLabel('Choose');
|
|
264
264
|
this.container = page.locator('#container');
|
|
265
|
-
this.actionBtn = page.
|
|
265
|
+
this.actionBtn = page.getByTestId('workspace:action-menu-button');
|
|
266
266
|
this.mediaPickerModalSubmitBtn = page.locator('umb-media-picker-modal').getByLabel('Submit');
|
|
267
267
|
this.deleteBtn = page.getByRole('button', { name: /^Delete(…)?$/ });
|
|
268
268
|
this.createModalBtn = this.sidebarModal.getByLabel('Create', { exact: true });
|
|
@@ -274,15 +274,15 @@ class UiBaseLocators {
|
|
|
274
274
|
this.embeddedPreview = this.embeddedMediaModal.locator('[label="Preview"]');
|
|
275
275
|
this.sectionSidebar = page.locator('umb-section-sidebar');
|
|
276
276
|
this.menuItem = page.locator('uui-menu-item');
|
|
277
|
-
this.property =
|
|
278
|
-
this.currentUserAvatarBtn =
|
|
277
|
+
this.property = page.locator('umb-property');
|
|
278
|
+
this.currentUserAvatarBtn = page.getByTestId('header-app:Umb.HeaderApp.CurrentUser').locator('uui-avatar');
|
|
279
279
|
this.currentPasswordTxt = page.locator('input[name="oldPassword"]');
|
|
280
280
|
this.newPasswordTxt = page.locator('input[name="newPassword"]');
|
|
281
281
|
this.confirmPasswordTxt = page.locator('input[name="confirmPassword"]');
|
|
282
|
-
this.createOptionActionListModal =
|
|
283
|
-
this.createActionButtonCollection =
|
|
282
|
+
this.createOptionActionListModal = page.locator('umb-entity-create-option-action-list-modal');
|
|
283
|
+
this.createActionButtonCollection = page.locator('umb-collection-create-action-button');
|
|
284
284
|
this.createActionBtn = this.createActionButtonCollection.locator('[label="Create"]');
|
|
285
|
-
this.collectionTreeItemTableRow =
|
|
285
|
+
this.collectionTreeItemTableRow = page.locator('umb-collection-workspace-view umb-table uui-table-row');
|
|
286
286
|
this.folderBtn = this.createOptionActionListModal.locator('[name="Folder"]');
|
|
287
287
|
this.reloadChildrenBtn = page.getByRole('button', { name: 'Reload children' });
|
|
288
288
|
this.confirmActionModalEntityReferences = page.locator('umb-confirm-action-modal-entity-references,umb-confirm-bulk-action-modal-entity-references');
|
|
@@ -291,19 +291,22 @@ class UiBaseLocators {
|
|
|
291
291
|
this.validationMessage = page.locator('umb-form-validation-message').locator('#messages');
|
|
292
292
|
this.successStateIcon = this.successState.locator('#state');
|
|
293
293
|
this.workspaceAction = page.locator('umb-workspace-action');
|
|
294
|
+
// Entity Action
|
|
295
|
+
this.entityAction = page.locator('umb-entity-action-list umb-entity-action');
|
|
296
|
+
this.openEntityAction = page.locator('#action-modal[open]').locator(this.entityAction);
|
|
294
297
|
}
|
|
295
298
|
async clickActionsMenuForNameInSectionSidebar(name) {
|
|
296
299
|
await this.sectionSidebar.locator('[label="' + name + '"]').hover();
|
|
297
300
|
await this.sectionSidebar.locator('[label="' + name + '"] >> [label="Open actions menu"]').first().click();
|
|
298
301
|
}
|
|
299
302
|
async clickActionsMenuForName(name) {
|
|
300
|
-
await (0, test_1.expect)(this.page.locator('[label="' + name + '"]')).toBeVisible();
|
|
301
|
-
await this.page.locator('[label="' + name + '"]').hover();
|
|
302
|
-
await this.page.locator('[label="' + name + '"]
|
|
303
|
+
await (0, test_1.expect)(this.page.locator('uui-menu-item[label="' + name + '"]')).toBeVisible();
|
|
304
|
+
await this.page.locator('uui-menu-item[label="' + name + '"]').hover();
|
|
305
|
+
await this.page.locator('uui-menu-item[label="' + name + '"] #action-modal').first().click();
|
|
303
306
|
}
|
|
304
307
|
async isActionsMenuForNameVisible(name, isVisible = true) {
|
|
305
|
-
await this.page.locator('[label="' + name + '"]').click();
|
|
306
|
-
await (0, test_1.expect)(this.page.locator('[label="' + name + '"]
|
|
308
|
+
await this.page.locator('uui-menu-item[label="' + name + '"]').click();
|
|
309
|
+
await (0, test_1.expect)(this.page.locator('uui-menu-item[label="' + name + '"] #action-modal').first()).toBeVisible({ visible: isVisible });
|
|
307
310
|
}
|
|
308
311
|
async clickCaretButtonForName(name) {
|
|
309
312
|
await this.isCaretButtonWithNameVisible(name);
|
|
@@ -320,7 +323,7 @@ class UiBaseLocators {
|
|
|
320
323
|
await (0, test_1.expect)(this.page.getByLabel(treeName, { exact: true })).toBeVisible();
|
|
321
324
|
await this.page.waitForTimeout(500);
|
|
322
325
|
await this.clickActionsMenuForName(treeName);
|
|
323
|
-
await this.
|
|
326
|
+
await this.clickReloadChildrenActionMenuOption();
|
|
324
327
|
const menuItem = this.page.locator('uui-menu-item[label="' + treeName + '"]');
|
|
325
328
|
const isCaretButtonOpen = await menuItem.getAttribute('show-children');
|
|
326
329
|
if (isCaretButtonOpen === null) {
|
|
@@ -507,7 +510,7 @@ class UiBaseLocators {
|
|
|
507
510
|
await ddlOption.click();
|
|
508
511
|
}
|
|
509
512
|
async createFolder(folderName) {
|
|
510
|
-
await this.
|
|
513
|
+
await this.clickCreateActionMenuOption();
|
|
511
514
|
await this.clickNewFolderThreeDotsButton();
|
|
512
515
|
await this.enterFolderName(folderName);
|
|
513
516
|
await this.clickConfirmCreateFolderButton();
|
|
@@ -532,7 +535,7 @@ class UiBaseLocators {
|
|
|
532
535
|
await (0, test_1.expect)(this.queryBuilderShowCode).toContainText(code, { timeout: 10000 });
|
|
533
536
|
}
|
|
534
537
|
async deleteFolder() {
|
|
535
|
-
await this.
|
|
538
|
+
await this.clickDeleteActionMenuOption();
|
|
536
539
|
await this.clickConfirmToDeleteButton();
|
|
537
540
|
}
|
|
538
541
|
async clickDeleteExactButton() {
|
|
@@ -595,10 +598,6 @@ class UiBaseLocators {
|
|
|
595
598
|
await (0, test_1.expect)(this.createBtn).toBeVisible();
|
|
596
599
|
await this.createBtn.click();
|
|
597
600
|
}
|
|
598
|
-
async clickActionsMenuCreateButton() {
|
|
599
|
-
await (0, test_1.expect)(this.actionMenucreateBtn).toBeVisible();
|
|
600
|
-
await this.actionMenucreateBtn.click();
|
|
601
|
-
}
|
|
602
601
|
async clickAddButton() {
|
|
603
602
|
await (0, test_1.expect)(this.addBtn).toBeVisible();
|
|
604
603
|
await this.addBtn.click();
|
|
@@ -710,12 +709,13 @@ class UiBaseLocators {
|
|
|
710
709
|
return await (0, test_1.expect)(this.groupLabel).toHaveValue(value);
|
|
711
710
|
}
|
|
712
711
|
async rename(newName) {
|
|
713
|
-
await this.
|
|
712
|
+
await this.clickRenameActionMenuOption();
|
|
714
713
|
await (0, test_1.expect)(this.newNameTxt).toBeVisible();
|
|
715
714
|
await this.newNameTxt.click();
|
|
716
715
|
await this.newNameTxt.clear();
|
|
717
716
|
await this.newNameTxt.fill(newName);
|
|
718
717
|
await this.renameModalBtn.click();
|
|
718
|
+
await this.page.waitForTimeout(500);
|
|
719
719
|
}
|
|
720
720
|
async isSuccessButtonWithTextVisible(text) {
|
|
721
721
|
return await (0, test_1.expect)(this.successState.filter({ hasText: text })).toBeVisible();
|
|
@@ -777,7 +777,7 @@ class UiBaseLocators {
|
|
|
777
777
|
await this.renameBtn.click();
|
|
778
778
|
}
|
|
779
779
|
async clickDeleteAndConfirmButton() {
|
|
780
|
-
await this.
|
|
780
|
+
await this.clickDeleteActionMenuOption();
|
|
781
781
|
await this.clickConfirmToDeleteButton();
|
|
782
782
|
}
|
|
783
783
|
async clickDeleteButton() {
|
|
@@ -814,10 +814,10 @@ class UiBaseLocators {
|
|
|
814
814
|
await this.addCollectionBtn.click();
|
|
815
815
|
}
|
|
816
816
|
async doesReturnedItemsHaveCount(itemCount) {
|
|
817
|
-
await (0, test_1.expect)(this.returnedItemsCount).toContainText(itemCount.toString() + ' items returned');
|
|
817
|
+
await (0, test_1.expect)(this.returnedItemsCount).toContainText(itemCount.toString() + ' published items returned');
|
|
818
818
|
}
|
|
819
819
|
async doesQueryResultHaveContentName(contentName) {
|
|
820
|
-
await (0, test_1.expect)(this.
|
|
820
|
+
await (0, test_1.expect)(this.queryResults).toContainText(contentName);
|
|
821
821
|
}
|
|
822
822
|
async deleteGroup(groupName) {
|
|
823
823
|
await this.page.waitForTimeout(1000);
|
|
@@ -930,9 +930,9 @@ class UiBaseLocators {
|
|
|
930
930
|
async isSectionWithNameVisible(sectionName, isVisible = true) {
|
|
931
931
|
await (0, test_1.expect)(this.page.getByRole('tab', { name: sectionName })).toBeVisible({ visible: isVisible });
|
|
932
932
|
}
|
|
933
|
-
async
|
|
934
|
-
await (0, test_1.expect)(this.mediaCardItems.filter({ hasText: name })
|
|
935
|
-
await this.mediaCardItems.filter({ hasText: name }).
|
|
933
|
+
async clickMediaWithName(name) {
|
|
934
|
+
await (0, test_1.expect)(this.mediaCardItems.filter({ hasText: name })).toBeVisible();
|
|
935
|
+
await this.mediaCardItems.filter({ hasText: name }).click();
|
|
936
936
|
}
|
|
937
937
|
async clickChooseContentStartNodeButton() {
|
|
938
938
|
await (0, test_1.expect)(this.chooseDocumentInputBtn).toBeVisible();
|
|
@@ -992,7 +992,7 @@ class UiBaseLocators {
|
|
|
992
992
|
await (0, test_1.expect)(this.submitBtn).toHaveAttribute('disabled');
|
|
993
993
|
}
|
|
994
994
|
async doesMediaHaveThumbnail(mediaId, thumbnailIconName, thumbnailImage) {
|
|
995
|
-
const mediaThumbnailLocator = this.page.
|
|
995
|
+
const mediaThumbnailLocator = this.page.getByTestId('media:' + mediaId);
|
|
996
996
|
if (thumbnailIconName === 'image') {
|
|
997
997
|
const regexImageSrc = new RegExp(`^${thumbnailImage}.*`);
|
|
998
998
|
await (0, test_1.expect)(mediaThumbnailLocator.locator('umb-imaging-thumbnail img')).toHaveAttribute('src', regexImageSrc);
|
|
@@ -1048,6 +1048,85 @@ class UiBaseLocators {
|
|
|
1048
1048
|
async isSuccessStateIconVisible() {
|
|
1049
1049
|
await (0, test_1.expect)(this.successStateIcon).toBeVisible();
|
|
1050
1050
|
}
|
|
1051
|
+
async isPropertyEditorUiWithNameReadOnly(name) {
|
|
1052
|
+
const propertyEditorUiLocator = this.page.locator('umb-property-editor-ui-' + name);
|
|
1053
|
+
await (0, test_1.expect)(propertyEditorUiLocator).toHaveAttribute('readonly');
|
|
1054
|
+
}
|
|
1055
|
+
async isPropertyEditorUiWithNameVisible(name, isVisible = true) {
|
|
1056
|
+
const propertyEditorUiLocator = this.page.locator('umb-property-editor-ui-' + name);
|
|
1057
|
+
await (0, test_1.expect)(propertyEditorUiLocator).toBeVisible({ visible: isVisible });
|
|
1058
|
+
}
|
|
1059
|
+
// Entity Action
|
|
1060
|
+
async clickEntityActionWithName(name) {
|
|
1061
|
+
const regex = new RegExp(`^entity-action:.*${name}$`);
|
|
1062
|
+
const entityActionLocator = this.openEntityAction.getByTestId(regex).first();
|
|
1063
|
+
await (0, test_1.expect)(entityActionLocator).toBeVisible();
|
|
1064
|
+
await entityActionLocator.click();
|
|
1065
|
+
}
|
|
1066
|
+
async clickCreateActionMenuOption() {
|
|
1067
|
+
await this.clickEntityActionWithName('Create');
|
|
1068
|
+
}
|
|
1069
|
+
async clickTrashActionMenuOption() {
|
|
1070
|
+
await this.clickEntityActionWithName('Trash');
|
|
1071
|
+
}
|
|
1072
|
+
async clickMoveToActionMenuOption() {
|
|
1073
|
+
await this.clickEntityActionWithName('MoveTo');
|
|
1074
|
+
}
|
|
1075
|
+
async clickCreateBlueprintActionMenuOption() {
|
|
1076
|
+
await this.clickEntityActionWithName('CreateBlueprint');
|
|
1077
|
+
}
|
|
1078
|
+
async clickDuplicateToActionMenuOption() {
|
|
1079
|
+
await this.clickEntityActionWithName('DuplicateTo');
|
|
1080
|
+
}
|
|
1081
|
+
async clickPublishActionMenuOption() {
|
|
1082
|
+
await this.clickEntityActionWithName('Publish');
|
|
1083
|
+
}
|
|
1084
|
+
async clickUnpublishActionMenuOption() {
|
|
1085
|
+
await this.clickEntityActionWithName('Unpublish');
|
|
1086
|
+
}
|
|
1087
|
+
async clickRollbackActionMenuOption() {
|
|
1088
|
+
await this.clickEntityActionWithName('Rollback');
|
|
1089
|
+
}
|
|
1090
|
+
async clickCultureAndHostnamesActionMenuOption() {
|
|
1091
|
+
await this.clickEntityActionWithName('CultureAndHostnames');
|
|
1092
|
+
}
|
|
1093
|
+
async clickPublicAccessActionMenuOption() {
|
|
1094
|
+
await this.clickEntityActionWithName('PublicAccess');
|
|
1095
|
+
}
|
|
1096
|
+
async clickSortChildrenActionMenuOption() {
|
|
1097
|
+
await this.clickEntityActionWithName('SortChildrenOf');
|
|
1098
|
+
}
|
|
1099
|
+
async clickNotificationsActionMenuOption() {
|
|
1100
|
+
await this.clickEntityActionWithName('Notifications');
|
|
1101
|
+
}
|
|
1102
|
+
async clickReloadChildrenActionMenuOption() {
|
|
1103
|
+
await this.clickEntityActionWithName('ReloadChildrenOf');
|
|
1104
|
+
}
|
|
1105
|
+
async clickDeleteActionMenuOption() {
|
|
1106
|
+
await this.clickEntityActionWithName('Delete');
|
|
1107
|
+
}
|
|
1108
|
+
async clickRestoreActionMenuOption() {
|
|
1109
|
+
await this.clickEntityActionWithName('Restore');
|
|
1110
|
+
}
|
|
1111
|
+
async clickRenameActionMenuOption() {
|
|
1112
|
+
await this.clickEntityActionWithName('Rename');
|
|
1113
|
+
}
|
|
1114
|
+
async clickCreateOptionsActionMenuOption() {
|
|
1115
|
+
await this.clickEntityActionWithName('CreateOptions');
|
|
1116
|
+
}
|
|
1117
|
+
async clickExportActionMenuOption() {
|
|
1118
|
+
await this.clickEntityActionWithName('Export');
|
|
1119
|
+
}
|
|
1120
|
+
async clickImportActionMenuOption() {
|
|
1121
|
+
await this.clickEntityActionWithName('Import');
|
|
1122
|
+
}
|
|
1123
|
+
async clickUpdateActionMenuOption() {
|
|
1124
|
+
await this.clickEntityActionWithName('Update');
|
|
1125
|
+
}
|
|
1126
|
+
async clickModalMenuItemWithName(name) {
|
|
1127
|
+
await (0, test_1.expect)(this.sidebarModal.locator('uui-menu-item[label="' + name + '"]')).toBeVisible();
|
|
1128
|
+
await this.sidebarModal.locator('uui-menu-item[label="' + name + '"]').click();
|
|
1129
|
+
}
|
|
1051
1130
|
}
|
|
1052
1131
|
exports.UiBaseLocators = UiBaseLocators;
|
|
1053
1132
|
//# sourceMappingURL=UiBaseLocators.js.map
|