@digital-ai/devops-page-object-release 0.0.39 → 0.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/CHANGELOG.md +14 -0
- package/dist/main.js +183 -59
- package/dist/main.js.map +1 -1
- package/dist/module.js +183 -59
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +23 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/module.js
CHANGED
|
@@ -161,6 +161,22 @@ class $5359280e98d97ff9$export$a678525e79c4ccc4 extends (0, $9626bc9256ce31f7$ex
|
|
|
161
161
|
});
|
|
162
162
|
await (0, $hOLA6$expect)(releaseStatus).toBeVisible();
|
|
163
163
|
}
|
|
164
|
+
async expectReleaseFailing(releaseTitle) {
|
|
165
|
+
const releaseStatus = this.page.locator(".release").filter({
|
|
166
|
+
hasText: releaseTitle
|
|
167
|
+
}).locator(".release-status").filter({
|
|
168
|
+
hasText: "Failing"
|
|
169
|
+
});
|
|
170
|
+
await (0, $hOLA6$expect)(releaseStatus).toBeVisible();
|
|
171
|
+
}
|
|
172
|
+
async expectReleaseCompleted(releaseTitle) {
|
|
173
|
+
const releaseStatus = this.page.locator(".release").filter({
|
|
174
|
+
hasText: releaseTitle
|
|
175
|
+
}).locator(".release-status").filter({
|
|
176
|
+
hasText: "Completed"
|
|
177
|
+
});
|
|
178
|
+
await (0, $hOLA6$expect)(releaseStatus).toBeVisible();
|
|
179
|
+
}
|
|
164
180
|
async filterReleaseByAllStatus() {
|
|
165
181
|
await this.page.locator(".ci-status .remaining-tags").getByText("more").click();
|
|
166
182
|
await this.page.locator(".ci-status .xl-react-link").getByText("Select all").click();
|
|
@@ -621,16 +637,25 @@ class $dfc4ce40cbd0eb71$var$VariableModal extends (0, $9626bc9256ce31f7$export$2
|
|
|
621
637
|
}
|
|
622
638
|
async createPossibleValuesVariable(variableName) {
|
|
623
639
|
await this.page.locator(".variable-toggle button").click();
|
|
624
|
-
await
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
640
|
+
await (0, $hOLA6$expect)(async ()=>{
|
|
641
|
+
await this.page.locator(".ui-autocomplete-input").clear();
|
|
642
|
+
await this.page.locator(".ui-autocomplete-input").fill(variableName);
|
|
643
|
+
const check = await this.page.locator(".ui-menu-item-wrapper").getByText("${" + variableName + "}", {
|
|
644
|
+
exact: true
|
|
645
|
+
}).isVisible({
|
|
646
|
+
timeout: 1000
|
|
647
|
+
});
|
|
648
|
+
if (check) await this.page.locator(".ui-menu-item-wrapper").getByText("${" + variableName + "}", {
|
|
649
|
+
exact: true
|
|
650
|
+
}).click({
|
|
651
|
+
timeout: 1000
|
|
652
|
+
});
|
|
653
|
+
else await this.page.locator(".ui-menu-item-wrapper").filter({
|
|
654
|
+
hasText: `${variableName}`
|
|
655
|
+
}).click({
|
|
656
|
+
timeout: 1000
|
|
657
|
+
});
|
|
658
|
+
}).toPass();
|
|
634
659
|
}
|
|
635
660
|
async expectVariableValueToBe(value) {
|
|
636
661
|
(0, $hOLA6$expect)(await this.page.locator('.variable-value select option[selected="selected"]').textContent()).toBe(value);
|
|
@@ -775,7 +800,6 @@ class $69e86f559cdf2bd0$export$15d3f9b095bb5188 extends (0, $9626bc9256ce31f7$ex
|
|
|
775
800
|
class $9c357602b6f466e7$export$aa59788fdecae2f2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
776
801
|
async expectWithAttachment(filename) {
|
|
777
802
|
const test = this.page.locator(".task-attachments-grid .file-item-text");
|
|
778
|
-
await test.isVisible();
|
|
779
803
|
await (0, $hOLA6$expect)(test).toContainText(filename);
|
|
780
804
|
}
|
|
781
805
|
async getAttachmentsListCount() {
|
|
@@ -873,10 +897,10 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
|
|
|
873
897
|
await this.page.waitForTimeout(1000);
|
|
874
898
|
}
|
|
875
899
|
async expectPreconditionEditable() {
|
|
876
|
-
await this.textEditor.
|
|
900
|
+
await (0, $hOLA6$expect)(this.textEditor).toBeVisible();
|
|
877
901
|
}
|
|
878
902
|
async expectPreconditionNotEditable() {
|
|
879
|
-
await this.textEditor.
|
|
903
|
+
await (0, $hOLA6$expect)(this.textEditor).not.toBeEditable();
|
|
880
904
|
}
|
|
881
905
|
async enableFailureHandler() {
|
|
882
906
|
await this.page.getByLabel("Enable failure handler").check();
|
|
@@ -1100,6 +1124,11 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1100
1124
|
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${propertyName}"]`).getByText(value)).toBeVisible();
|
|
1101
1125
|
return this;
|
|
1102
1126
|
}
|
|
1127
|
+
async expectDisabledInputField(propertyName) {
|
|
1128
|
+
const inputField = this.railLocator.locator(`.task-input-property input[id="${propertyName}"]`);
|
|
1129
|
+
if (await inputField.isVisible()) await (0, $hOLA6$expect)(inputField).toHaveAttribute("readonly", "");
|
|
1130
|
+
return this;
|
|
1131
|
+
}
|
|
1103
1132
|
async expectRiskProfileValue(value) {
|
|
1104
1133
|
await (0, $hOLA6$expect)(this.railLocator.locator("#riskProfileId")).toHaveValue(value);
|
|
1105
1134
|
}
|
|
@@ -1187,7 +1216,6 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1187
1216
|
})
|
|
1188
1217
|
}).locator(".icon-options");
|
|
1189
1218
|
if (canDelete) {
|
|
1190
|
-
await depOptionsIcon.isVisible();
|
|
1191
1219
|
await depOptionsIcon.click();
|
|
1192
1220
|
await (0, $hOLA6$expect)(this.railLocator.getByRole("menuitem", {
|
|
1193
1221
|
name: "Remove"
|
|
@@ -1215,7 +1243,6 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1215
1243
|
exact: true
|
|
1216
1244
|
})
|
|
1217
1245
|
}).locator(".icon-options");
|
|
1218
|
-
await depOptionsIcon.isVisible();
|
|
1219
1246
|
await depOptionsIcon.click();
|
|
1220
1247
|
await this.railLocator.getByRole("menuitem", {
|
|
1221
1248
|
name: "Remove"
|
|
@@ -1246,7 +1273,6 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1246
1273
|
const depOptionsIcon = this.page.locator(".dependency").filter({
|
|
1247
1274
|
has: this.page.getByLabel(dependencies)
|
|
1248
1275
|
}).first().locator(".actions");
|
|
1249
|
-
await depOptionsIcon.isVisible();
|
|
1250
1276
|
await depOptionsIcon.click();
|
|
1251
1277
|
const frame = this.page.getByTestId("undefined-menu");
|
|
1252
1278
|
if (await frame.isVisible()) await this.railLocator.getByRole("menuitem", {
|
|
@@ -1308,9 +1334,11 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1308
1334
|
await (0, $hOLA6$expect)(this.page.locator("#dialogTitle")).toContainText(errorMessage);
|
|
1309
1335
|
}
|
|
1310
1336
|
async isButtonVisible(buttonName, visible = true) {
|
|
1311
|
-
|
|
1337
|
+
const locator = this.page.getByRole("button", {
|
|
1312
1338
|
name: buttonName
|
|
1313
|
-
})
|
|
1339
|
+
});
|
|
1340
|
+
if (visible) await (0, $hOLA6$expect)(locator).toBeVisible();
|
|
1341
|
+
else await (0, $hOLA6$expect)(locator).not.toBeVisible();
|
|
1314
1342
|
}
|
|
1315
1343
|
async cancelDialogWindow() {
|
|
1316
1344
|
await this.page.getByRole("button", {
|
|
@@ -1359,9 +1387,11 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1359
1387
|
await this.page.locator(`input[name='${fieldID}']`).fill(value);
|
|
1360
1388
|
}
|
|
1361
1389
|
async abortButtonVisibility(visible = true) {
|
|
1362
|
-
|
|
1390
|
+
const locator = this.page.getByRole("button", {
|
|
1363
1391
|
name: "Abort"
|
|
1364
|
-
})
|
|
1392
|
+
});
|
|
1393
|
+
if (visible) await (0, $hOLA6$expect)(locator).toBeVisible();
|
|
1394
|
+
else await (0, $hOLA6$expect)(locator).not.toBeVisible();
|
|
1365
1395
|
}
|
|
1366
1396
|
async setPattern(patternName) {
|
|
1367
1397
|
await this.page.locator("#patternId").click();
|
|
@@ -1527,15 +1557,12 @@ class $90bb70a7e909e500$export$fbbf45eff21470e3 extends (0, $9626bc9256ce31f7$ex
|
|
|
1527
1557
|
this.task = this.dependencyLocator.locator("#task-dependency");
|
|
1528
1558
|
}
|
|
1529
1559
|
async getRelease() {
|
|
1530
|
-
await this.release.isVisible();
|
|
1531
1560
|
return await this.release.getAttribute("value");
|
|
1532
1561
|
}
|
|
1533
1562
|
async getPhase() {
|
|
1534
|
-
await this.phase.isVisible();
|
|
1535
1563
|
return await this.phase.getAttribute("value");
|
|
1536
1564
|
}
|
|
1537
1565
|
async getTask() {
|
|
1538
|
-
await this.task.isVisible();
|
|
1539
1566
|
return await this.task.getAttribute("value");
|
|
1540
1567
|
}
|
|
1541
1568
|
async setRelease(releaseTitle) {
|
|
@@ -1718,14 +1745,14 @@ class $499d3d8c8706756b$export$e3515314c13bc477 extends (0, $9626bc9256ce31f7$ex
|
|
|
1718
1745
|
this.dateUtil = new (0, $71075ce65fcede1d$export$9b575f14aa5e09a1)(page);
|
|
1719
1746
|
}
|
|
1720
1747
|
async expectStartDateToBeDisplayed() {
|
|
1721
|
-
(0, $hOLA6$expect)(
|
|
1748
|
+
await (0, $hOLA6$expect)(this.page.locator(".flex-section.column").filter({
|
|
1722
1749
|
hasText: "Start Date"
|
|
1723
|
-
}).locator(".task-date-view-content")
|
|
1750
|
+
}).locator(".task-date-view-content")).toBeVisible();
|
|
1724
1751
|
}
|
|
1725
1752
|
async expectEndDateToBeDisplayed() {
|
|
1726
|
-
(0, $hOLA6$expect)(
|
|
1753
|
+
await (0, $hOLA6$expect)(this.page.locator(".flex-section.column").filter({
|
|
1727
1754
|
hasText: "End Date"
|
|
1728
|
-
}).locator(".task-date-view-content")
|
|
1755
|
+
}).locator(".task-date-view-content")).toBeVisible();
|
|
1729
1756
|
}
|
|
1730
1757
|
async switchWaitForScheduledDate() {
|
|
1731
1758
|
await this.page.locator(".wait-for-start input").click();
|
|
@@ -2522,6 +2549,8 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2522
2549
|
constructor(page){
|
|
2523
2550
|
super(page);
|
|
2524
2551
|
this.commentBox = this.page.locator(`.input-block-level`);
|
|
2552
|
+
this.contextMenuButton = this.page.locator("#context-menu-container li");
|
|
2553
|
+
this.completeButton = this.page.getByTestId("release-grid-complete-btn");
|
|
2525
2554
|
this.dateUtil = new (0, $71075ce65fcede1d$export$9b575f14aa5e09a1)(page);
|
|
2526
2555
|
this.refreshButton = this.page.getByTestId("refresh-btn");
|
|
2527
2556
|
this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
|
|
@@ -2533,8 +2562,12 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2533
2562
|
}
|
|
2534
2563
|
// eslint-disable-next-line max-params
|
|
2535
2564
|
async callMenuOptionsForTask(taskTitle, option, taskGroup, taskType) {
|
|
2536
|
-
await
|
|
2537
|
-
|
|
2565
|
+
await (0, $hOLA6$expect)(async ()=>{
|
|
2566
|
+
await this.openContextMenuForTask(taskTitle);
|
|
2567
|
+
await this.page.locator(".dropdown-menu li").getByText(option).click({
|
|
2568
|
+
timeout: 1000
|
|
2569
|
+
});
|
|
2570
|
+
}).toPass();
|
|
2538
2571
|
if (await this.commentBox.isVisible()) await this.commentBox.fill(" Automation Test Comment");
|
|
2539
2572
|
else if (await this.page.getByRole("heading", {
|
|
2540
2573
|
name: "Change task type"
|
|
@@ -2668,7 +2701,7 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2668
2701
|
return this;
|
|
2669
2702
|
}
|
|
2670
2703
|
async completeSelectedTasks(comment) {
|
|
2671
|
-
await this.
|
|
2704
|
+
await this.completeButton.click();
|
|
2672
2705
|
await this.page.getByPlaceholder("Give feedback or place a").fill(comment);
|
|
2673
2706
|
await this.page.locator(".modal-footer").getByRole("button", {
|
|
2674
2707
|
name: "Complete"
|
|
@@ -2725,6 +2758,47 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2725
2758
|
await this.page.keyboard.up("Shift");
|
|
2726
2759
|
return this;
|
|
2727
2760
|
}
|
|
2761
|
+
async isContextualMenuItemEnabled(menuName, taskTitle) {
|
|
2762
|
+
await this.openContextMenuForTask(taskTitle);
|
|
2763
|
+
await (0, $hOLA6$expect)(this.contextMenuButton.filter({
|
|
2764
|
+
hasText: menuName
|
|
2765
|
+
})).not.toHaveClass(/disabled/);
|
|
2766
|
+
await (0, $hOLA6$expect)(this.contextMenuButton.filter({
|
|
2767
|
+
hasText: menuName
|
|
2768
|
+
}).locator("a")).not.toBeDisabled();
|
|
2769
|
+
await this.closeContextMenu();
|
|
2770
|
+
}
|
|
2771
|
+
async isContextualMenuItemDisabled(menuName, taskTitle) {
|
|
2772
|
+
await this.openContextMenuForTask(taskTitle);
|
|
2773
|
+
const menuItem = this.contextMenuButton.filter({
|
|
2774
|
+
hasText: menuName
|
|
2775
|
+
});
|
|
2776
|
+
await (0, $hOLA6$expect)(menuItem).toHaveClass(/disabled/);
|
|
2777
|
+
const anchorTag = menuItem.locator("a");
|
|
2778
|
+
const disabledAttribute = await anchorTag.getAttribute("disabled");
|
|
2779
|
+
(0, $hOLA6$expect)(disabledAttribute).not.toBeNull();
|
|
2780
|
+
await this.closeContextMenu();
|
|
2781
|
+
}
|
|
2782
|
+
async closeContextMenu() {
|
|
2783
|
+
await this.page.locator("#release-header").click();
|
|
2784
|
+
}
|
|
2785
|
+
async expectDisabledActions(actionName) {
|
|
2786
|
+
await (0, $hOLA6$expect)(this.page.getByTestId(`release-grid-${actionName}-btn`)).toBeDisabled();
|
|
2787
|
+
return this;
|
|
2788
|
+
}
|
|
2789
|
+
async expectDisabledActionsOnMoreActionsMenu(menuItem) {
|
|
2790
|
+
await this.page.getByTestId("release-grid-dropdown-btn").click();
|
|
2791
|
+
if (menuItem instanceof Array) for (const val of menuItem)await (0, $hOLA6$expect)(this.page.getByRole("button", {
|
|
2792
|
+
name: val,
|
|
2793
|
+
exact: true
|
|
2794
|
+
})).toBeDisabled();
|
|
2795
|
+
else await (0, $hOLA6$expect)(this.page.getByRole("button", {
|
|
2796
|
+
name: menuItem,
|
|
2797
|
+
exact: true
|
|
2798
|
+
})).toBeDisabled();
|
|
2799
|
+
await this.closeContextMenu();
|
|
2800
|
+
return this;
|
|
2801
|
+
}
|
|
2728
2802
|
}
|
|
2729
2803
|
|
|
2730
2804
|
|
|
@@ -3172,12 +3246,12 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
3172
3246
|
await downloadPromise;
|
|
3173
3247
|
}
|
|
3174
3248
|
async expectTaskToBePresent(taskName) {
|
|
3175
|
-
await (0, $hOLA6$expect)(this.page.locator(".task").filter({
|
|
3249
|
+
await (0, $hOLA6$expect)(this.page.locator(".task .task-title").filter({
|
|
3176
3250
|
hasText: taskName
|
|
3177
3251
|
})).toBeVisible();
|
|
3178
3252
|
}
|
|
3179
3253
|
async expectTaskNotToBePresent(taskName) {
|
|
3180
|
-
await (0, $hOLA6$expect)(this.page.locator(".task").filter({
|
|
3254
|
+
await (0, $hOLA6$expect)(this.page.locator(".task .task-title").filter({
|
|
3181
3255
|
hasText: taskName
|
|
3182
3256
|
})).not.toBeVisible();
|
|
3183
3257
|
}
|
|
@@ -3215,6 +3289,12 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
3215
3289
|
async expectAddTaskNotVisible() {
|
|
3216
3290
|
await (0, $hOLA6$expect)(this.page.locator(".add-task.link")).not.toBeVisible();
|
|
3217
3291
|
}
|
|
3292
|
+
async expectTaskCount(count) {
|
|
3293
|
+
(0, $hOLA6$expect)(await this.page.locator(".task-container").count()).toBe(count);
|
|
3294
|
+
}
|
|
3295
|
+
async expectCurrentTaskCount(count) {
|
|
3296
|
+
(0, $hOLA6$expect)(await this.page.locator(".task.active").count()).toBe(count);
|
|
3297
|
+
}
|
|
3218
3298
|
}
|
|
3219
3299
|
class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
3220
3300
|
constructor(page, phaseName){
|
|
@@ -3232,8 +3312,8 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3232
3312
|
await this.phaseLocator.locator(".phase-header input").fill(title);
|
|
3233
3313
|
await this.phaseLocator.locator(".phase-header input").blur();
|
|
3234
3314
|
}
|
|
3235
|
-
async isMenuItemEnabled(menuName, taskTitle) {
|
|
3236
|
-
await this.openContextMenuForTask(taskTitle);
|
|
3315
|
+
async isMenuItemEnabled(menuName, taskTitle, group = false) {
|
|
3316
|
+
await this.openContextMenuForTask(taskTitle, group);
|
|
3237
3317
|
await (0, $hOLA6$expect)(this.contextMenuButton.filter({
|
|
3238
3318
|
hasText: menuName
|
|
3239
3319
|
})).not.toHaveClass(/disabled/);
|
|
@@ -3242,8 +3322,8 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3242
3322
|
}).locator("a")).not.toBeDisabled();
|
|
3243
3323
|
await this.closeContextMenu();
|
|
3244
3324
|
}
|
|
3245
|
-
async isMenuItemDisabled(menuName, taskTitle) {
|
|
3246
|
-
await this.openContextMenuForTask(taskTitle);
|
|
3325
|
+
async isMenuItemDisabled(menuName, taskTitle, group = false) {
|
|
3326
|
+
await this.openContextMenuForTask(taskTitle, group);
|
|
3247
3327
|
const menuItem = this.contextMenuButton.filter({
|
|
3248
3328
|
hasText: menuName
|
|
3249
3329
|
});
|
|
@@ -3296,8 +3376,11 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3296
3376
|
async expectToHaveTitle(phaseTitle) {
|
|
3297
3377
|
await (0, $hOLA6$expect)(this.phaseLocator.locator(".phase-title")).toContainText(phaseTitle);
|
|
3298
3378
|
}
|
|
3299
|
-
async openContextMenuForTask(taskTitle) {
|
|
3300
|
-
await this.phaseLocator.locator(".task").filter({
|
|
3379
|
+
async openContextMenuForTask(taskTitle, group = false) {
|
|
3380
|
+
if (!group) await this.phaseLocator.locator(".task").filter({
|
|
3381
|
+
hasText: taskTitle
|
|
3382
|
+
}).locator(".context-menu-button").click();
|
|
3383
|
+
else await this.phaseLocator.locator(".task-group .task").filter({
|
|
3301
3384
|
hasText: taskTitle
|
|
3302
3385
|
}).locator(".context-menu-button").click();
|
|
3303
3386
|
}
|
|
@@ -3329,6 +3412,16 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3329
3412
|
}).click();
|
|
3330
3413
|
return this;
|
|
3331
3414
|
}
|
|
3415
|
+
async unlockFromContextMenu(taskTitle, group = false) {
|
|
3416
|
+
await this.openContextMenuForTask(taskTitle, group);
|
|
3417
|
+
await this.page.locator(".dropdown-menu li").getByText("Unlock").click();
|
|
3418
|
+
await this.expectLockCheckMark(taskTitle, false);
|
|
3419
|
+
}
|
|
3420
|
+
async lockFromContextMenu(taskTitle, group = false) {
|
|
3421
|
+
await this.openContextMenuForTask(taskTitle, group);
|
|
3422
|
+
await this.page.locator(".dropdown-menu li").getByText("Lock").click();
|
|
3423
|
+
await this.expectLockCheckMark(taskTitle, true);
|
|
3424
|
+
}
|
|
3332
3425
|
async expectChangeTypeContextMenuDisabled(taskTitle, taskGroup, taskType) {
|
|
3333
3426
|
await this.openContextMenuForTask(taskTitle);
|
|
3334
3427
|
await this.page.locator(".dropdown-menu li").getByText("Change type").click();
|
|
@@ -3346,6 +3439,15 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3346
3439
|
await (0, $hOLA6$expect)(this.page.locator(".task-type-gatetask .marker-check-icon")).toBeVisible();
|
|
3347
3440
|
return this;
|
|
3348
3441
|
}
|
|
3442
|
+
async expectLockCheckMark(taskTitle, isVisible = true) {
|
|
3443
|
+
if (isVisible) await (0, $hOLA6$expect)(this.page.locator(".task-header").filter({
|
|
3444
|
+
hasText: taskTitle
|
|
3445
|
+
}).locator(".lock-icon")).toBeVisible();
|
|
3446
|
+
else await (0, $hOLA6$expect)(this.page.locator(".task-header").filter({
|
|
3447
|
+
hasText: taskTitle
|
|
3448
|
+
}).locator(".lock-icon")).not.toBeVisible();
|
|
3449
|
+
return this;
|
|
3450
|
+
}
|
|
3349
3451
|
async expectFailureHandlerCheckMar(taskTitle, isVisible = true) {
|
|
3350
3452
|
if (isVisible) await (0, $hOLA6$expect)(this.page.locator(".task").filter({
|
|
3351
3453
|
hasText: taskTitle
|
|
@@ -3458,10 +3560,10 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3458
3560
|
await this.page.getByText("View all completed phases").click();
|
|
3459
3561
|
}
|
|
3460
3562
|
async expectTaskToBePresent(taskName, visible = true) {
|
|
3461
|
-
if (visible) await (0, $hOLA6$expect)(this.phaseLocator.locator(".task").filter({
|
|
3563
|
+
if (visible) await (0, $hOLA6$expect)(this.phaseLocator.locator(".task .task-title").filter({
|
|
3462
3564
|
hasText: taskName
|
|
3463
3565
|
})).toBeVisible();
|
|
3464
|
-
else await (0, $hOLA6$expect)(this.phaseLocator.locator(".task").filter({
|
|
3566
|
+
else await (0, $hOLA6$expect)(this.phaseLocator.locator(".task .task-title").filter({
|
|
3465
3567
|
hasText: taskName
|
|
3466
3568
|
})).not.toBeVisible();
|
|
3467
3569
|
}
|
|
@@ -3535,6 +3637,21 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3535
3637
|
hasText: "Your request has been rejected, your permissions may have been revoked."
|
|
3536
3638
|
})).toBeVisible();
|
|
3537
3639
|
}
|
|
3640
|
+
async expectCurrentTaskCount(count) {
|
|
3641
|
+
(0, $hOLA6$expect)(await this.phaseLocator.locator(".task.active").count()).toBe(count);
|
|
3642
|
+
}
|
|
3643
|
+
async expectCompletedTaskCount(count) {
|
|
3644
|
+
(0, $hOLA6$expect)(await this.phaseLocator.locator(".task.completed").count()).toBe(count);
|
|
3645
|
+
}
|
|
3646
|
+
async expectFailedTaskCount(count) {
|
|
3647
|
+
(0, $hOLA6$expect)(await this.phaseLocator.locator(".task.failed").count()).toBe(count);
|
|
3648
|
+
}
|
|
3649
|
+
async expectFailingTaskCount(count) {
|
|
3650
|
+
(0, $hOLA6$expect)(await this.phaseLocator.locator(".task.failing").count()).toBe(count);
|
|
3651
|
+
}
|
|
3652
|
+
async expectSkippedTaskCount(count) {
|
|
3653
|
+
(0, $hOLA6$expect)(await this.phaseLocator.locator(".task.skipped").count()).toBe(count);
|
|
3654
|
+
}
|
|
3538
3655
|
}
|
|
3539
3656
|
class $43cbcdfccb6c2a76$var$RestartPhaseModel extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
3540
3657
|
constructor(page){
|
|
@@ -3550,7 +3667,7 @@ class $43cbcdfccb6c2a76$var$RestartPhaseModel extends (0, $9626bc9256ce31f7$expo
|
|
|
3550
3667
|
await this.page.locator('.modal select[data-test="fromTask"]').selectOption(task);
|
|
3551
3668
|
}
|
|
3552
3669
|
async expectNoTaskSelectorVisible() {
|
|
3553
|
-
(0, $hOLA6$expect)(
|
|
3670
|
+
await (0, $hOLA6$expect)(this.page.locator('.modal select[data-test="fromTask"]')).not.toBeVisible();
|
|
3554
3671
|
}
|
|
3555
3672
|
async continue() {
|
|
3556
3673
|
await this.page.locator(".modal .continue").click();
|
|
@@ -4065,7 +4182,6 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
|
|
|
4065
4182
|
async backToAllFolders() {
|
|
4066
4183
|
await this.page.locator(".icon-back.dot-i").click();
|
|
4067
4184
|
await (0, $hOLA6$expect)(this.page).toHaveTitle("Folders - Digital.ai Release");
|
|
4068
|
-
await this.page.locator("button.btn-add-folder").isVisible();
|
|
4069
4185
|
return this;
|
|
4070
4186
|
}
|
|
4071
4187
|
async createFolder(folderName) {
|
|
@@ -4343,7 +4459,6 @@ class $3df1257265fba073$export$74ca1eaaa9a0054 extends (0, $9626bc9256ce31f7$exp
|
|
|
4343
4459
|
await this.page.getByRole("button", {
|
|
4344
4460
|
name: "Delete"
|
|
4345
4461
|
}).click();
|
|
4346
|
-
await this.page.locator("alert.notice.ng-scope").isVisible();
|
|
4347
4462
|
}
|
|
4348
4463
|
async editVariable(variableName, editedvariabletext) {
|
|
4349
4464
|
await this.page.locator("[id='variables-filter']").fill(variableName);
|
|
@@ -5983,7 +6098,6 @@ class $c37c93912f458e81$var$GridView extends (0, $9626bc9256ce31f7$export$2b65d1
|
|
|
5983
6098
|
hasText: action
|
|
5984
6099
|
}).click();
|
|
5985
6100
|
if (action === "Complete") {
|
|
5986
|
-
await this.page.locator("#modal textarea[mentio]").isVisible();
|
|
5987
6101
|
await this.page.locator("#modal textarea[mentio]").fill("complete");
|
|
5988
6102
|
await this.page.locator("#modal button.primary").filter({
|
|
5989
6103
|
hasText: "Complete"
|
|
@@ -6717,10 +6831,14 @@ class $a4ba753fcd18eb4a$export$539d82a5d70c4909 extends (0, $9626bc9256ce31f7$ex
|
|
|
6717
6831
|
(0, $hOLA6$expect)(await this.getValue(identifier)).toEqual(value.toString());
|
|
6718
6832
|
}
|
|
6719
6833
|
async shouldHaveEditButton(present = true) {
|
|
6720
|
-
|
|
6834
|
+
const locator = this.page.locator("#editRisk");
|
|
6835
|
+
if (present) await (0, $hOLA6$expect)(locator).toBeVisible();
|
|
6836
|
+
else await (0, $hOLA6$expect)(locator).not.toBeVisible();
|
|
6721
6837
|
}
|
|
6722
6838
|
async shouldHaveSaveButton(present = true) {
|
|
6723
|
-
|
|
6839
|
+
const locator = this.page.getByTestId("save-btn");
|
|
6840
|
+
if (present) await (0, $hOLA6$expect)(locator).toBeVisible();
|
|
6841
|
+
else await (0, $hOLA6$expect)(locator).not.toBeVisible();
|
|
6724
6842
|
}
|
|
6725
6843
|
async startEditGlobalRiskThreshold() {
|
|
6726
6844
|
await this.page.locator("#editRisk").click();
|
|
@@ -6742,9 +6860,11 @@ class $a4ba753fcd18eb4a$export$539d82a5d70c4909 extends (0, $9626bc9256ce31f7$ex
|
|
|
6742
6860
|
await this.page.locator("#risk-profile-table").waitFor({
|
|
6743
6861
|
state: "visible"
|
|
6744
6862
|
});
|
|
6745
|
-
|
|
6863
|
+
const locator = this.page.locator(".risk-profile .data-row").filter({
|
|
6746
6864
|
hasText: title
|
|
6747
|
-
})
|
|
6865
|
+
});
|
|
6866
|
+
if (present) await (0, $hOLA6$expect)(locator).toBeVisible();
|
|
6867
|
+
else await (0, $hOLA6$expect)(locator).not.toBeVisible();
|
|
6748
6868
|
}
|
|
6749
6869
|
async expectDefaultRiskProfileToBeFirst() {
|
|
6750
6870
|
await this.page.locator("#risk-profile-table").waitFor({
|
|
@@ -6767,9 +6887,11 @@ class $a4ba753fcd18eb4a$export$539d82a5d70c4909 extends (0, $9626bc9256ce31f7$ex
|
|
|
6767
6887
|
}).waitFor({
|
|
6768
6888
|
state: "visible"
|
|
6769
6889
|
});
|
|
6770
|
-
|
|
6890
|
+
const locator = this.page.locator(".risk-profile .data-row").filter({
|
|
6771
6891
|
hasText: title
|
|
6772
|
-
}).locator(".copy-action")
|
|
6892
|
+
}).locator(".copy-action");
|
|
6893
|
+
if (enabled) await (0, $hOLA6$expect)(locator).toBeVisible();
|
|
6894
|
+
else await (0, $hOLA6$expect)(locator).not.toBeVisible();
|
|
6773
6895
|
}
|
|
6774
6896
|
async shouldHaveDeleteButtonEnabledForRiskProfile(title, enabled = true) {
|
|
6775
6897
|
await this.page.locator(".risk-profile .data-row").filter({
|
|
@@ -6777,9 +6899,11 @@ class $a4ba753fcd18eb4a$export$539d82a5d70c4909 extends (0, $9626bc9256ce31f7$ex
|
|
|
6777
6899
|
}).waitFor({
|
|
6778
6900
|
state: "visible"
|
|
6779
6901
|
});
|
|
6780
|
-
|
|
6902
|
+
const locator = this.page.locator(`.risk-profile .data-row`).filter({
|
|
6781
6903
|
hasText: title
|
|
6782
|
-
}).locator(`.remove-action`)
|
|
6904
|
+
}).locator(`.remove-action`);
|
|
6905
|
+
if (enabled) await (0, $hOLA6$expect)(locator).toBeVisible();
|
|
6906
|
+
else await (0, $hOLA6$expect)(locator).not.toBeVisible();
|
|
6783
6907
|
}
|
|
6784
6908
|
async clickNewRiskProfile() {
|
|
6785
6909
|
await this.page.getByTestId("new-risk-btn").waitFor({
|
|
@@ -6835,7 +6959,9 @@ class $a4ba753fcd18eb4a$export$539d82a5d70c4909 extends (0, $9626bc9256ce31f7$ex
|
|
|
6835
6959
|
(0, $hOLA6$expect)(await this.page.locator("#risk-profile-table .data-row").count()).toEqual(numberOfVisibleRiskProfiles);
|
|
6836
6960
|
}
|
|
6837
6961
|
async shouldHaveNewRiskProfileButton(present = true) {
|
|
6838
|
-
|
|
6962
|
+
const locator = this.page.getByTestId("new-risk-btn");
|
|
6963
|
+
if (present) await (0, $hOLA6$expect)(locator).toBeVisible();
|
|
6964
|
+
else await (0, $hOLA6$expect)(locator).not.toBeVisible();
|
|
6839
6965
|
}
|
|
6840
6966
|
}
|
|
6841
6967
|
class $a4ba753fcd18eb4a$var$RisksProfilePage extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
@@ -6931,18 +7057,18 @@ class $6c0f5b52769b32c3$export$9823ddf5e80770e7 extends (0, $9626bc9256ce31f7$ex
|
|
|
6931
7057
|
state: "visible",
|
|
6932
7058
|
timeout: 200000
|
|
6933
7059
|
});
|
|
6934
|
-
(0, $hOLA6$expect)(
|
|
7060
|
+
await (0, $hOLA6$expect)(this.page.locator(`.configuration-instance`).filter({
|
|
6935
7061
|
hasText: instanceName
|
|
6936
|
-
})
|
|
7062
|
+
})).toBeVisible();
|
|
6937
7063
|
return this;
|
|
6938
7064
|
}
|
|
6939
7065
|
async expectInstanceNotDisplayed(instanceName) {
|
|
6940
7066
|
await this.page.locator("#configuration").waitFor({
|
|
6941
7067
|
state: "visible"
|
|
6942
7068
|
});
|
|
6943
|
-
(0, $hOLA6$expect)(
|
|
7069
|
+
await (0, $hOLA6$expect)(this.page.locator(`.configuration-instance`).filter({
|
|
6944
7070
|
hasText: instanceName
|
|
6945
|
-
})
|
|
7071
|
+
})).not.toBeVisible();
|
|
6946
7072
|
return this;
|
|
6947
7073
|
}
|
|
6948
7074
|
async openInstance(instanceName) {
|
|
@@ -7163,7 +7289,6 @@ class $2c3301798e261060$export$8da2fa93430be6ca extends (0, $9626bc9256ce31f7$ex
|
|
|
7163
7289
|
exact: true
|
|
7164
7290
|
})
|
|
7165
7291
|
}).getByRole("checkbox").click();
|
|
7166
|
-
await this.page.getByTestId("save-btn").isVisible();
|
|
7167
7292
|
await this.page.getByTestId("save-btn").click();
|
|
7168
7293
|
await this.page.locator(".saved-text").waitFor();
|
|
7169
7294
|
} else if (!isChecked && enable) {
|
|
@@ -7177,7 +7302,6 @@ class $2c3301798e261060$export$8da2fa93430be6ca extends (0, $9626bc9256ce31f7$ex
|
|
|
7177
7302
|
exact: true
|
|
7178
7303
|
})
|
|
7179
7304
|
}).getByRole("checkbox").click();
|
|
7180
|
-
await this.page.getByTestId("save-btn").isVisible();
|
|
7181
7305
|
await this.page.getByTestId("save-btn").click();
|
|
7182
7306
|
await this.page.locator(".saved-text").waitFor();
|
|
7183
7307
|
}
|