@digital-ai/devops-page-object-release 0.0.32 → 0.0.34
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 +15 -0
- package/dist/main.js +398 -25
- package/dist/main.js.map +1 -1
- package/dist/module.js +398 -25
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +73 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -389,7 +389,17 @@ class $dfc4ce40cbd0eb71$export$f8e64fcf447db2bf extends (0, $9626bc9256ce31f7$ex
|
|
|
389
389
|
return new $dfc4ce40cbd0eb71$var$VariableModal(this.page);
|
|
390
390
|
}
|
|
391
391
|
async addNewVariable(variableName, labelname, description) {
|
|
392
|
-
await this.page.locator("
|
|
392
|
+
await this.page.locator("button", {
|
|
393
|
+
hasText: "New variable"
|
|
394
|
+
}).click();
|
|
395
|
+
await this.page.fill(`[name="fieldKey"]`, variableName);
|
|
396
|
+
await this.page.locator(".variable-label input").fill(labelname);
|
|
397
|
+
if (description) await this.page.locator(".variable-description input").fill(description);
|
|
398
|
+
}
|
|
399
|
+
async addNewVariableInFolder(variableName, labelname, description) {
|
|
400
|
+
await this.page.locator("button", {
|
|
401
|
+
hasText: "New folder variable"
|
|
402
|
+
}).click();
|
|
393
403
|
await this.page.fill(`[name="fieldKey"]`, variableName);
|
|
394
404
|
await this.page.locator(".variable-label input").fill(labelname);
|
|
395
405
|
if (description) await this.page.locator(".variable-description input").fill(description);
|
|
@@ -609,7 +619,13 @@ class $dfc4ce40cbd0eb71$var$VariableModal extends (0, $9626bc9256ce31f7$export$2
|
|
|
609
619
|
async createPossibleValuesVariable(variableName) {
|
|
610
620
|
await this.page.locator(".variable-toggle button").click();
|
|
611
621
|
await this.page.locator(".ui-autocomplete-input").fill(variableName);
|
|
612
|
-
await this.page.locator(".ui-menu-item-wrapper").
|
|
622
|
+
const check = await this.page.locator(".ui-menu-item-wrapper").getByText("${" + variableName + "}", {
|
|
623
|
+
exact: true
|
|
624
|
+
}).isVisible();
|
|
625
|
+
if (check) await this.page.locator(".ui-menu-item-wrapper").getByText("${" + variableName + "}", {
|
|
626
|
+
exact: true
|
|
627
|
+
}).click();
|
|
628
|
+
else await this.page.locator(".ui-menu-item-wrapper").filter({
|
|
613
629
|
hasText: `${variableName}`
|
|
614
630
|
}).click();
|
|
615
631
|
}
|
|
@@ -725,11 +741,29 @@ class $dfc4ce40cbd0eb71$var$DeleteVariableModel extends (0, $9626bc9256ce31f7$ex
|
|
|
725
741
|
|
|
726
742
|
class $69e86f559cdf2bd0$export$15d3f9b095bb5188 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
727
743
|
async expectCommentToContain(comment) {
|
|
728
|
-
(0, $hOLA6$expect)(
|
|
744
|
+
await (0, $hOLA6$expect)(this.page.locator(".markdown-wrapper").getByText(comment)).toBeVisible();
|
|
729
745
|
}
|
|
730
746
|
async expectTaskIsCommentable(isCommentable) {
|
|
731
747
|
return (0, $hOLA6$expect)(await this.page.locator("#task-comment").count()).toBe(isCommentable ? 1 : 0);
|
|
732
748
|
}
|
|
749
|
+
async addComment(comment) {
|
|
750
|
+
await this.page.locator("#task-comment").fill(comment);
|
|
751
|
+
await this.page.locator(".icon-send-airplane").click();
|
|
752
|
+
return this;
|
|
753
|
+
}
|
|
754
|
+
async expectAuthorCommentsToBe(author) {
|
|
755
|
+
await (0, $hOLA6$expect)(this.page.locator(".task-comment-user h6")).toHaveText(author);
|
|
756
|
+
return this;
|
|
757
|
+
}
|
|
758
|
+
async expectCommentsDateTimeToBe(comment, date) {
|
|
759
|
+
const commentLocator = this.page.locator(".task-comment-body").filter({
|
|
760
|
+
has: this.page.locator(".markdown-switcher").getByText(comment)
|
|
761
|
+
}).locator(".task-comment-user span").getByRole("tooltip", {
|
|
762
|
+
name: "Edited"
|
|
763
|
+
});
|
|
764
|
+
await (0, $hOLA6$expect)(commentLocator).toHaveAttribute("aria-label", date);
|
|
765
|
+
return this;
|
|
766
|
+
}
|
|
733
767
|
}
|
|
734
768
|
|
|
735
769
|
|
|
@@ -936,8 +970,17 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
936
970
|
await this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`).focus();
|
|
937
971
|
return this.railLocator.locator(`input[id="${propertyName}"]`).inputValue();
|
|
938
972
|
}
|
|
973
|
+
async getStringListField(propertyName) {
|
|
974
|
+
return new $90bb70a7e909e500$export$2d646ce41126d906(propertyName, this.page);
|
|
975
|
+
}
|
|
976
|
+
async getStringSetField(propertyName) {
|
|
977
|
+
return new $90bb70a7e909e500$export$1a41fd2ab8394c46(propertyName, this.page);
|
|
978
|
+
}
|
|
979
|
+
async getStringMapField(propertyName) {
|
|
980
|
+
return new $90bb70a7e909e500$export$62811a109bb4377d(propertyName, this.page);
|
|
981
|
+
}
|
|
939
982
|
async setValueFromString(propertyName, value) {
|
|
940
|
-
await this.railLocator.locator(`input[
|
|
983
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).focus();
|
|
941
984
|
await this.railLocator.locator(`input[id="${propertyName}"]`).fill(value);
|
|
942
985
|
}
|
|
943
986
|
async setValueFromLargeString(propertyName, value) {
|
|
@@ -971,8 +1014,11 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
971
1014
|
await (0, $hOLA6$expect)(this.railLocator.locator(`#${variableId}`)).toHaveValue(value);
|
|
972
1015
|
} else await (0, $hOLA6$expect)(this.railLocator.locator(`#${variableId}`)).not.toBeVisible();
|
|
973
1016
|
}
|
|
974
|
-
async
|
|
975
|
-
await this.railLocator.locator(
|
|
1017
|
+
async expectValueInInputProperties(propertyName, value, expected = true) {
|
|
1018
|
+
if (expected) await (0, $hOLA6$expect)(this.railLocator.locator(`[name='${propertyName}']`)).toHaveValue(value);
|
|
1019
|
+
}
|
|
1020
|
+
async selectReleaseIdInOutputProperties(objectID, variableName) {
|
|
1021
|
+
await this.railLocator.locator(`#${objectID}`).fill(variableName);
|
|
976
1022
|
await this.page.getByRole("option", {
|
|
977
1023
|
name: variableName
|
|
978
1024
|
}).click();
|
|
@@ -987,6 +1033,10 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
987
1033
|
async expectValueFromString(propertyName, propertyValue) {
|
|
988
1034
|
return await (0, $hOLA6$expect)(this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`)).toHaveText(propertyValue);
|
|
989
1035
|
}
|
|
1036
|
+
async expectValueFromResultString(propertyName, value) {
|
|
1037
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${propertyName}"]`).getByText(value)).toBeVisible();
|
|
1038
|
+
return this;
|
|
1039
|
+
}
|
|
990
1040
|
async expectRiskProfileValue(value) {
|
|
991
1041
|
await (0, $hOLA6$expect)(this.railLocator.locator("#riskProfileId")).toHaveValue(value);
|
|
992
1042
|
}
|
|
@@ -1017,12 +1067,6 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1017
1067
|
await this.page.locator("#release-tags").press("Enter");
|
|
1018
1068
|
}
|
|
1019
1069
|
}
|
|
1020
|
-
async setValueFromMap(propertyName, key, value) {
|
|
1021
|
-
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] button.add-new-button`).click();
|
|
1022
|
-
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] input[id="new-row-key-input"]`).fill(key);
|
|
1023
|
-
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] input[id="new-row-value-input"]`).fill(value);
|
|
1024
|
-
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] button.map-row-save-button`).click();
|
|
1025
|
-
}
|
|
1026
1070
|
async setScript(script) {
|
|
1027
1071
|
await this.scriptTextArea.clear();
|
|
1028
1072
|
await this.scriptTextArea.fill(script);
|
|
@@ -1052,7 +1096,9 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1052
1096
|
await this.page.getByTestId("single-action-button").click();
|
|
1053
1097
|
await this.page.getByTestId("task-action-comment").click();
|
|
1054
1098
|
await this.page.getByTestId("task-action-comment").fill(comment);
|
|
1055
|
-
await this.page.
|
|
1099
|
+
await this.page.locator("button", {
|
|
1100
|
+
hasText: "Abort"
|
|
1101
|
+
}).click();
|
|
1056
1102
|
}
|
|
1057
1103
|
async expectDependenciesDisplayed(dependencies) {
|
|
1058
1104
|
await this.railLocator.locator(".gate-task-dependencies").waitFor();
|
|
@@ -1313,6 +1359,14 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1313
1359
|
async close() {
|
|
1314
1360
|
await this.page.locator("task-drawer .dot-drawer .task-drawer-header").getByTestId("close-btn").click();
|
|
1315
1361
|
}
|
|
1362
|
+
async deselectValue(ObjectID) {
|
|
1363
|
+
await this.page.locator(`#${ObjectID}`).hover();
|
|
1364
|
+
await this.page.getByRole("button", {
|
|
1365
|
+
name: "Clear"
|
|
1366
|
+
}).click();
|
|
1367
|
+
await (0, $hOLA6$expect)(this.page.locator(`#${ObjectID}`)).toHaveValue("");
|
|
1368
|
+
return this;
|
|
1369
|
+
}
|
|
1316
1370
|
}
|
|
1317
1371
|
class $90bb70a7e909e500$export$fbbf45eff21470e3 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1318
1372
|
constructor(page){
|
|
@@ -1403,6 +1457,103 @@ class $90bb70a7e909e500$export$fbbf45eff21470e3 extends (0, $9626bc9256ce31f7$ex
|
|
|
1403
1457
|
}).click();
|
|
1404
1458
|
}
|
|
1405
1459
|
}
|
|
1460
|
+
class $90bb70a7e909e500$export$2d646ce41126d906 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1461
|
+
constructor(propertyName, page){
|
|
1462
|
+
super(page);
|
|
1463
|
+
this.propertyName = propertyName;
|
|
1464
|
+
}
|
|
1465
|
+
async setValueFromStringList(value) {
|
|
1466
|
+
await this.page.locator(`input[id="${this.propertyName}"]`).focus();
|
|
1467
|
+
await this.page.locator(`input[id="${this.propertyName}"]`).fill(value);
|
|
1468
|
+
await this.page.locator(`[data-test-id="${this.propertyName}"] .icon-add`).click();
|
|
1469
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] .list`).getByText(value)).toBeVisible();
|
|
1470
|
+
return this;
|
|
1471
|
+
}
|
|
1472
|
+
async expectStringListCount(count) {
|
|
1473
|
+
(0, $hOLA6$expect)(await this.page.locator(`[data-test-id="${this.propertyName}"] .list`).count()).toBe(count);
|
|
1474
|
+
return this;
|
|
1475
|
+
}
|
|
1476
|
+
async removeValueFromStringList(value) {
|
|
1477
|
+
await this.page.locator(`[data-test-id="${this.propertyName}"] .list`).filter({
|
|
1478
|
+
hasText: value
|
|
1479
|
+
}).locator(".icon-close").click();
|
|
1480
|
+
return this;
|
|
1481
|
+
}
|
|
1482
|
+
async expectInputFieldDisabled() {
|
|
1483
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] input`)).not.toBeEditable();
|
|
1484
|
+
return this;
|
|
1485
|
+
}
|
|
1486
|
+
async expectValueFromStringList(value) {
|
|
1487
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] .list`).getByText(value)).toBeVisible();
|
|
1488
|
+
return this;
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
class $90bb70a7e909e500$export$1a41fd2ab8394c46 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1492
|
+
constructor(propertyName, page){
|
|
1493
|
+
super(page);
|
|
1494
|
+
this.propertyName = propertyName;
|
|
1495
|
+
}
|
|
1496
|
+
async setValueFromStringSet(value) {
|
|
1497
|
+
await this.page.locator(`input[id="${this.propertyName}"]`).focus();
|
|
1498
|
+
await this.page.locator(`input[id="${this.propertyName}"]`).fill(value);
|
|
1499
|
+
await this.page.locator(`[data-test-id="${this.propertyName}"] .icon-add`).click();
|
|
1500
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] .list`).getByText(value)).toBeVisible();
|
|
1501
|
+
return this;
|
|
1502
|
+
}
|
|
1503
|
+
async expectInputFieldDisabled() {
|
|
1504
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] input`)).not.toBeEditable();
|
|
1505
|
+
return this;
|
|
1506
|
+
}
|
|
1507
|
+
async expectAddButtonDisabled() {
|
|
1508
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] .icon-add`)).toBeDisabled();
|
|
1509
|
+
return this;
|
|
1510
|
+
}
|
|
1511
|
+
async expectStringSetCount(count) {
|
|
1512
|
+
(0, $hOLA6$expect)(await this.page.locator(`[data-test-id="${this.propertyName}"] .list`).count()).toBe(count);
|
|
1513
|
+
return this;
|
|
1514
|
+
}
|
|
1515
|
+
async removeValueFromStringSet(key) {
|
|
1516
|
+
await this.page.locator(`[data-test-id="${this.propertyName}"] .list`).filter({
|
|
1517
|
+
hasText: key
|
|
1518
|
+
}).locator(".icon-close").click();
|
|
1519
|
+
return this;
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
class $90bb70a7e909e500$export$62811a109bb4377d extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1523
|
+
constructor(propertyName, page){
|
|
1524
|
+
super(page);
|
|
1525
|
+
this.propertyName = propertyName;
|
|
1526
|
+
}
|
|
1527
|
+
async setValueFromMap(key, value) {
|
|
1528
|
+
await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.add-new-button`).click();
|
|
1529
|
+
await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-key-input"]`).fill(key);
|
|
1530
|
+
await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-value-input"]`).fill(value);
|
|
1531
|
+
await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.map-row-save-button`).click();
|
|
1532
|
+
await (0, $hOLA6$expect)(this.page.locator(`.map-data-row .map-key`).getByText(key)).toBeVisible();
|
|
1533
|
+
}
|
|
1534
|
+
async removeValueFromMap(key) {
|
|
1535
|
+
await this.page.locator(`.map-data-row`).filter({
|
|
1536
|
+
has: this.page.locator(`.map-key`).getByText(key)
|
|
1537
|
+
}).locator(`.icon-delete`).click();
|
|
1538
|
+
return this;
|
|
1539
|
+
}
|
|
1540
|
+
async expectStringMapCount(count) {
|
|
1541
|
+
(0, $hOLA6$expect)(await this.page.locator(".map-data-row").count()).toBe(count);
|
|
1542
|
+
return this;
|
|
1543
|
+
}
|
|
1544
|
+
async expectAddButtonDisabledForMap(key, value) {
|
|
1545
|
+
await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.add-new-button`).click();
|
|
1546
|
+
await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-key-input"]`).fill(key);
|
|
1547
|
+
await (0, $hOLA6$expect)(this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.add-new-button`)).toBeDisabled();
|
|
1548
|
+
await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-value-input"]`).fill(value);
|
|
1549
|
+
await (0, $hOLA6$expect)(this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.add-new-button`)).toBeDisabled();
|
|
1550
|
+
return this;
|
|
1551
|
+
}
|
|
1552
|
+
async expectInputFieldDisabledForMap() {
|
|
1553
|
+
await (0, $hOLA6$expect)(this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-value-input"]`)).not.toBeVisible();
|
|
1554
|
+
return this;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1406
1557
|
|
|
1407
1558
|
|
|
1408
1559
|
|
|
@@ -1576,18 +1727,31 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
1576
1727
|
async startNow(comment) {
|
|
1577
1728
|
await this.startButton.click();
|
|
1578
1729
|
await this.commentBox.fill(comment);
|
|
1579
|
-
await this.page.
|
|
1730
|
+
await this.page.locator("button", {
|
|
1731
|
+
hasText: "Start now"
|
|
1732
|
+
}).click();
|
|
1580
1733
|
await (0, $hOLA6$expect)(this.startButton).not.toBeVisible();
|
|
1581
1734
|
}
|
|
1582
1735
|
async expectTaskTitle(taskTitle) {
|
|
1583
1736
|
await (0, $hOLA6$expect)(this.page.locator(".task-drawer .task-title-input .dot-view-mode-typography")).toContainText(taskTitle);
|
|
1584
1737
|
}
|
|
1738
|
+
async expectCompleteButtonEnabled() {
|
|
1739
|
+
await (0, $hOLA6$expect)(this.completeButton).toBeEnabled();
|
|
1740
|
+
}
|
|
1741
|
+
async expectCompleteButtonNotEnabled() {
|
|
1742
|
+
await (0, $hOLA6$expect)(this.completeButton).not.toBeEnabled();
|
|
1743
|
+
}
|
|
1585
1744
|
async setTitle(title) {
|
|
1586
1745
|
await this.page.getByTestId("task-title-input-view-mode-typography").click();
|
|
1587
1746
|
await this.page.getByTestId("task-title-input-input").clear();
|
|
1588
1747
|
await this.page.getByTestId("task-title-input-input").fill(title);
|
|
1589
1748
|
await this.page.getByTestId("task-title-input-input").press("Enter");
|
|
1590
1749
|
}
|
|
1750
|
+
async expectTaskTitleEditable() {
|
|
1751
|
+
await this.page.getByTestId("task-title-input-view-mode-typography").click();
|
|
1752
|
+
await (0, $hOLA6$expect)(this.page.getByTestId("task-title-input-input")).toBeEditable();
|
|
1753
|
+
return this;
|
|
1754
|
+
}
|
|
1591
1755
|
async expectTypeToContain(taskType) {
|
|
1592
1756
|
await (0, $hOLA6$expect)(this.page.locator(".task-drawer .task-type")).toContainText(taskType);
|
|
1593
1757
|
}
|
|
@@ -1639,10 +1803,34 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
1639
1803
|
}).click();
|
|
1640
1804
|
}
|
|
1641
1805
|
async assignToMe(userName, existingUsername) {
|
|
1806
|
+
await this.page.locator(".user-task-assigned-wrapper .editable").getByText(existingUsername).click();
|
|
1807
|
+
await this.page.getByTestId(`render-option-${userName}`).click();
|
|
1808
|
+
}
|
|
1809
|
+
async removeAssignToUser(userName) {
|
|
1642
1810
|
await this.page.getByRole("button", {
|
|
1643
|
-
name:
|
|
1811
|
+
name: userName
|
|
1644
1812
|
}).click();
|
|
1645
|
-
await this.page.
|
|
1813
|
+
await this.page.getByRole("button", {
|
|
1814
|
+
name: "Clear"
|
|
1815
|
+
}).click();
|
|
1816
|
+
return this;
|
|
1817
|
+
}
|
|
1818
|
+
async assignToTeam(existingTeamName, teamName) {
|
|
1819
|
+
await this.page.locator(".team-task-assigned-wrapper .editable").getByText(existingTeamName).click();
|
|
1820
|
+
await this.page.getByTestId(`render-option-${teamName}`).click();
|
|
1821
|
+
return this;
|
|
1822
|
+
}
|
|
1823
|
+
async expectAssignedToTeam(teamName) {
|
|
1824
|
+
await (0, $hOLA6$expect)(this.page.getByRole("button", {
|
|
1825
|
+
name: teamName
|
|
1826
|
+
})).toBeVisible();
|
|
1827
|
+
}
|
|
1828
|
+
async removeAssignedTeam(teamName) {
|
|
1829
|
+
await this.page.locator(".team-task-assigned-wrapper .editable").getByText(teamName).click();
|
|
1830
|
+
await this.page.getByRole("button", {
|
|
1831
|
+
name: "Clear"
|
|
1832
|
+
}).click();
|
|
1833
|
+
return this;
|
|
1646
1834
|
}
|
|
1647
1835
|
async setFlag(flagName, flagComment) {
|
|
1648
1836
|
await this.page.getByTestId("flag-btn").click();
|
|
@@ -2605,7 +2793,9 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
2605
2793
|
}).click();
|
|
2606
2794
|
await this.page.getByTestId("task-action-comment").click();
|
|
2607
2795
|
await this.page.getByTestId("task-action-comment").fill(comment);
|
|
2608
|
-
await this.page.
|
|
2796
|
+
await this.page.locator("button", {
|
|
2797
|
+
hasText: "Reopen"
|
|
2798
|
+
}).click();
|
|
2609
2799
|
}
|
|
2610
2800
|
async openTaskDrawer(taskName) {
|
|
2611
2801
|
await this.page.locator(".task-header").getByText(taskName, {
|
|
@@ -2829,7 +3019,6 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
2829
3019
|
hasText: phaseName
|
|
2830
3020
|
});
|
|
2831
3021
|
this.commentBox = this.page.locator(`.input-block-level`);
|
|
2832
|
-
this.confirm = this.page.getByTestId("dot-button");
|
|
2833
3022
|
this.contextMenuButton = this.page.locator("#context-menu-container li");
|
|
2834
3023
|
this.dateUtil = new (0, $71075ce65fcede1d$export$9b575f14aa5e09a1)(page);
|
|
2835
3024
|
}
|
|
@@ -2926,6 +3115,44 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
2926
3115
|
exact: true
|
|
2927
3116
|
}).click();
|
|
2928
3117
|
}
|
|
3118
|
+
async changeTypeFromContextMenu(taskTitle, taskGroup, taskType) {
|
|
3119
|
+
await this.openContextMenuForTask(taskTitle);
|
|
3120
|
+
await this.page.locator(".dropdown-menu li").getByText("Change type").click();
|
|
3121
|
+
await this.page.locator("#task-selector").fill(taskGroup);
|
|
3122
|
+
await this.page.getByTestId(taskType).click();
|
|
3123
|
+
await this.page.getByRole("button", {
|
|
3124
|
+
name: "Change type"
|
|
3125
|
+
}).click();
|
|
3126
|
+
return this;
|
|
3127
|
+
}
|
|
3128
|
+
async expectChangeTypeContextMenuDisabled(taskTitle, taskGroup, taskType) {
|
|
3129
|
+
await this.openContextMenuForTask(taskTitle);
|
|
3130
|
+
await this.page.locator(".dropdown-menu li").getByText("Change type").click();
|
|
3131
|
+
await this.page.locator("#task-selector").fill(taskGroup);
|
|
3132
|
+
await this.page.getByTestId(taskType).click();
|
|
3133
|
+
await (0, $hOLA6$expect)(this.page.getByRole("button", {
|
|
3134
|
+
name: "Change type"
|
|
3135
|
+
})).toBeDisabled();
|
|
3136
|
+
await this.page.getByRole("button", {
|
|
3137
|
+
name: "Cancel"
|
|
3138
|
+
}).click();
|
|
3139
|
+
return this;
|
|
3140
|
+
}
|
|
3141
|
+
async expectGateCheckMark() {
|
|
3142
|
+
await (0, $hOLA6$expect)(this.page.locator(".task-type-gatetask .marker-check-icon")).toBeVisible();
|
|
3143
|
+
return this;
|
|
3144
|
+
}
|
|
3145
|
+
async expectNoOptionInChangeType(taskTitle, taskGroup) {
|
|
3146
|
+
await this.openContextMenuForTask(taskTitle);
|
|
3147
|
+
await this.page.locator(".dropdown-menu li").getByText("Change type").click();
|
|
3148
|
+
await this.page.locator("#task-selector").fill(taskGroup);
|
|
3149
|
+
await (0, $hOLA6$expect)(this.page.getByText("No options")).toBeVisible();
|
|
3150
|
+
await this.page.getByTestId("ArrowDropDownIcon").click();
|
|
3151
|
+
await this.page.getByRole("button", {
|
|
3152
|
+
name: "Cancel"
|
|
3153
|
+
}).click();
|
|
3154
|
+
return this;
|
|
3155
|
+
}
|
|
2929
3156
|
async assignToMeFromContextMenu(taskTitle) {
|
|
2930
3157
|
await this.openContextMenuForTask(taskTitle);
|
|
2931
3158
|
await this.page.locator(".dropdown-menu li").getByText("Assign to me").click();
|
|
@@ -3067,6 +3294,18 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3067
3294
|
await (0, $hOLA6$expect)(this.phaseLocator.locator(".task-generator .add-task")).toHaveCount(0);
|
|
3068
3295
|
await (0, $hOLA6$expect)(this.phaseLocator.locator(".display")).toHaveCount(0);
|
|
3069
3296
|
}
|
|
3297
|
+
async expectTaskFailureManualPermission() {
|
|
3298
|
+
await this.phaseLocator.getByText("Add task").click();
|
|
3299
|
+
const checkboxElement = await this.page.getByTestId("save-select-task-btn").isEnabled();
|
|
3300
|
+
if (!checkboxElement) {
|
|
3301
|
+
await this.page.getByTestId("cancel-select-task-btn").click();
|
|
3302
|
+
await this.phaseLocator.getByText("Add task").click();
|
|
3303
|
+
}
|
|
3304
|
+
await this.page.getByTestId("save-select-task-btn").click();
|
|
3305
|
+
await (0, $hOLA6$expect)(this.page.locator("p").filter({
|
|
3306
|
+
hasText: "Your request has been rejected, your permissions may have been revoked."
|
|
3307
|
+
})).toBeVisible();
|
|
3308
|
+
}
|
|
3070
3309
|
}
|
|
3071
3310
|
class $43cbcdfccb6c2a76$var$RestartPhaseModel extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
3072
3311
|
constructor(page){
|
|
@@ -3209,7 +3448,7 @@ class $27cd192f30944b0c$export$572f40d328c1d028 extends (0, $9626bc9256ce31f7$ex
|
|
|
3209
3448
|
super(page);
|
|
3210
3449
|
this.dateUtil = new (0, $71075ce65fcede1d$export$9b575f14aa5e09a1)(page);
|
|
3211
3450
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
3212
|
-
this.newReleaseGroupButton = page.
|
|
3451
|
+
this.newReleaseGroupButton = page.getByText("New release group");
|
|
3213
3452
|
this.dateMonth = new Date();
|
|
3214
3453
|
}
|
|
3215
3454
|
async createGroup(groupName, startDate, endDate) {
|
|
@@ -3358,7 +3597,7 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
3358
3597
|
this.addDescription = page.getByPlaceholder("Set description...");
|
|
3359
3598
|
}
|
|
3360
3599
|
async clickNewDeliveryPattern() {
|
|
3361
|
-
await this.page.
|
|
3600
|
+
await this.page.getByText("New delivery pattern").click();
|
|
3362
3601
|
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
3363
3602
|
name: "Create delivery pattern"
|
|
3364
3603
|
})).toBeVisible();
|
|
@@ -3456,7 +3695,9 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
3456
3695
|
})).not.toBeVisible();
|
|
3457
3696
|
}
|
|
3458
3697
|
async createNewDelivery(deliveryName, deliveryDes, setAutoComplete) {
|
|
3459
|
-
await this.page.
|
|
3698
|
+
await this.page.getByRole("button", {
|
|
3699
|
+
name: "New delivery"
|
|
3700
|
+
}).click();
|
|
3460
3701
|
await this.addName.fill(deliveryName);
|
|
3461
3702
|
await this.addDescription.click();
|
|
3462
3703
|
if (deliveryDes) await this.addDescription.fill(deliveryDes);
|
|
@@ -4164,7 +4405,9 @@ class $ecd0868a4240184d$export$7b434e00c788d0bf extends (0, $9626bc9256ce31f7$ex
|
|
|
4164
4405
|
await (0, $hOLA6$expect)(this.page.getByLabel("info").locator("div")).toContainText("New plugin installedPlugin release-" + pluginName.toLowerCase() + "-integration has been installed, click here to reload the changes or refresh your browser");
|
|
4165
4406
|
}
|
|
4166
4407
|
async clickUpload() {
|
|
4167
|
-
await this.page.
|
|
4408
|
+
await this.page.locator("button", {
|
|
4409
|
+
hasText: "Upload"
|
|
4410
|
+
}).click();
|
|
4168
4411
|
}
|
|
4169
4412
|
}
|
|
4170
4413
|
|
|
@@ -4205,7 +4448,7 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
|
|
|
4205
4448
|
async editUserProfile(email) {
|
|
4206
4449
|
await this.page.getByLabel("Email address").click();
|
|
4207
4450
|
await this.page.getByLabel("Email address").fill(email);
|
|
4208
|
-
await this.page.
|
|
4451
|
+
await this.page.getByText("Save").click();
|
|
4209
4452
|
(0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
|
|
4210
4453
|
}
|
|
4211
4454
|
async generateNewAccessToken(tokenName, expiryOptions) {
|
|
@@ -4723,6 +4966,11 @@ class $3a340a3f4fd8f04d$export$43682cddead1dd78 extends (0, $9626bc9256ce31f7$ex
|
|
|
4723
4966
|
await this.page.locator(".release-modal-container").waitFor({
|
|
4724
4967
|
state: "visible"
|
|
4725
4968
|
});
|
|
4969
|
+
const modalWindow = await this.page.locator(".release-modal-container").isVisible();
|
|
4970
|
+
if (!modalWindow) {
|
|
4971
|
+
await this.page.locator(".tl-event-title").getByText(release_title).scrollIntoViewIfNeeded();
|
|
4972
|
+
await this.page.locator(".tl-event-title").getByText(release_title).click();
|
|
4973
|
+
}
|
|
4726
4974
|
await this.page.locator(".release-modal-container").locator(".xl-icon.release-icon").click();
|
|
4727
4975
|
const releaseurl = `/#/releases/${release_id}`;
|
|
4728
4976
|
const currentURL = await this.page.url();
|
|
@@ -4920,7 +5168,7 @@ class $f48771b486a3eb8f$export$a87f0ae8695e74be extends (0, $9626bc9256ce31f7$ex
|
|
|
4920
5168
|
return new $f48771b486a3eb8f$var$ReleaseVariableModal(this.page);
|
|
4921
5169
|
}
|
|
4922
5170
|
async addNewVariable(variableName, labelname, description) {
|
|
4923
|
-
await this.page.locator("#action-toolbar").
|
|
5171
|
+
await this.page.locator("#action-toolbar").getByText("New variable").click();
|
|
4924
5172
|
await this.page.fill(`[name="fieldKey"]`, variableName);
|
|
4925
5173
|
await this.page.locator(".variable-label input").fill(labelname);
|
|
4926
5174
|
if (description) await this.page.locator(".variable-description input").fill(description);
|
|
@@ -5229,8 +5477,9 @@ class $f48771b486a3eb8f$var$DeleteVariableModel extends (0, $9626bc9256ce31f7$ex
|
|
|
5229
5477
|
class $c37c93912f458e81$export$60c3bfa6385e2a10 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
5230
5478
|
constructor(page){
|
|
5231
5479
|
super(page);
|
|
5232
|
-
this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
|
|
5233
5480
|
this.commentBox = this.page.locator(`.input-block-level`);
|
|
5481
|
+
this.gridView = new $c37c93912f458e81$var$GridView(page);
|
|
5482
|
+
this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
|
|
5234
5483
|
}
|
|
5235
5484
|
async openTask(taskName) {
|
|
5236
5485
|
await this.filterTaskByTitle(taskName);
|
|
@@ -5443,6 +5692,75 @@ class $c37c93912f458e81$export$60c3bfa6385e2a10 extends (0, $9626bc9256ce31f7$ex
|
|
|
5443
5692
|
async changeGroupView() {
|
|
5444
5693
|
await this.page.locator("#group-tasks-by-release").click();
|
|
5445
5694
|
}
|
|
5695
|
+
async enableGroupByReleaseView() {
|
|
5696
|
+
await this.page.getByRole("checkbox", {
|
|
5697
|
+
name: "Group by release"
|
|
5698
|
+
}).check();
|
|
5699
|
+
}
|
|
5700
|
+
async disableGroupByReleaseView() {
|
|
5701
|
+
await this.page.getByRole("checkbox", {
|
|
5702
|
+
name: "Group by release"
|
|
5703
|
+
}).uncheck();
|
|
5704
|
+
}
|
|
5705
|
+
async switchToGridView() {
|
|
5706
|
+
await this.page.locator(".xl-icon.grid-icon").click();
|
|
5707
|
+
return this.gridView;
|
|
5708
|
+
}
|
|
5709
|
+
}
|
|
5710
|
+
class $c37c93912f458e81$var$GridView extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
5711
|
+
constructor(page){
|
|
5712
|
+
super(page);
|
|
5713
|
+
this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
|
|
5714
|
+
}
|
|
5715
|
+
async expectTaskCountInGridView(count) {
|
|
5716
|
+
await (0, $hOLA6$expect)(this.page.locator("task-grid .task-wrapper")).toHaveCount(count);
|
|
5717
|
+
}
|
|
5718
|
+
// eslint-disable-next-line max-params
|
|
5719
|
+
async expectTaskDetailsInGridView(taskId, taskStatus, taskTitle, assignedTo, release, phase, startDate) {
|
|
5720
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] .label`)).toContainText(taskStatus);
|
|
5721
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] .title`)).toContainText(taskTitle);
|
|
5722
|
+
if (assignedTo) await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] span`).filter({
|
|
5723
|
+
hasText: "Assigned to "
|
|
5724
|
+
}).first()).toContainText(assignedTo);
|
|
5725
|
+
if (release) await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] [data-test="release"]`)).toContainText(release);
|
|
5726
|
+
if (phase) await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] [data-test="phase"] span`)).toContainText(phase);
|
|
5727
|
+
if (startDate) await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] [data-test="started"]`)).toContainText(startDate);
|
|
5728
|
+
else await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] .caption`).getByText("Started")).not.toBeVisible();
|
|
5729
|
+
return this;
|
|
5730
|
+
}
|
|
5731
|
+
async openTaskDrawerFromGridView(taskId, taskTitle) {
|
|
5732
|
+
await this.page.locator(`[data-test-id="${taskId}"] .title`).filter({
|
|
5733
|
+
hasText: taskTitle
|
|
5734
|
+
}).click();
|
|
5735
|
+
return this.taskDrawer;
|
|
5736
|
+
}
|
|
5737
|
+
async openContextualMenu(taskId) {
|
|
5738
|
+
await this.page.locator(`[data-test-id="${taskId}"] .xl-icon.options-icon`).click();
|
|
5739
|
+
}
|
|
5740
|
+
async expectContextMenuHas(taskId, enabled, disabled) {
|
|
5741
|
+
await this.openContextualMenu(taskId);
|
|
5742
|
+
for (const e of enabled)await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] #context-menu-container li:not(.disabled) a`).getByText(e)).toBeVisible();
|
|
5743
|
+
for (const e of disabled)await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] #context-menu-container li.disabled a`).getByText(e)).toBeVisible();
|
|
5744
|
+
return this;
|
|
5745
|
+
}
|
|
5746
|
+
async waitForTaskNotDisplayed(taskId) {
|
|
5747
|
+
await (0, $hOLA6$expect)(this.page.locator(`div.task[data-test-id=${taskId}]`)).not.toBeVisible();
|
|
5748
|
+
return this;
|
|
5749
|
+
}
|
|
5750
|
+
async triggerContextMenuAction(action) {
|
|
5751
|
+
await this.page.locator(`#context-menu-container li a`).filter({
|
|
5752
|
+
hasText: action
|
|
5753
|
+
}).click();
|
|
5754
|
+
if (action === "Complete") {
|
|
5755
|
+
await this.page.locator("#modal textarea[mentio]").isVisible();
|
|
5756
|
+
await this.page.locator("#modal textarea[mentio]").fill("complete");
|
|
5757
|
+
await this.page.locator("#modal button.primary").filter({
|
|
5758
|
+
hasText: "Complete"
|
|
5759
|
+
}).click();
|
|
5760
|
+
return this;
|
|
5761
|
+
}
|
|
5762
|
+
return this;
|
|
5763
|
+
}
|
|
5446
5764
|
}
|
|
5447
5765
|
|
|
5448
5766
|
|
|
@@ -6583,6 +6901,56 @@ class $6c0f5b52769b32c3$var$ConfigurationInstancePage extends (0, $9626bc9256ce3
|
|
|
6583
6901
|
}
|
|
6584
6902
|
|
|
6585
6903
|
|
|
6904
|
+
|
|
6905
|
+
class $2c3301798e261060$export$8da2fa93430be6ca extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
6906
|
+
constructor(page){
|
|
6907
|
+
super(page);
|
|
6908
|
+
}
|
|
6909
|
+
async setTaskAvailableToAllUsers(taskName, enable) {
|
|
6910
|
+
await this.page.locator("tr.ng-scope").filter({
|
|
6911
|
+
has: this.page.getByText(taskName, {
|
|
6912
|
+
exact: true
|
|
6913
|
+
})
|
|
6914
|
+
}).getByRole("checkbox").scrollIntoViewIfNeeded();
|
|
6915
|
+
const checkboxElement = this.page.locator("tr.ng-scope").filter({
|
|
6916
|
+
has: this.page.getByText(taskName, {
|
|
6917
|
+
exact: true
|
|
6918
|
+
})
|
|
6919
|
+
}).getByRole("checkbox");
|
|
6920
|
+
const isChecked = await checkboxElement.isChecked();
|
|
6921
|
+
if (isChecked && !enable) {
|
|
6922
|
+
await this.page.locator("tr.ng-scope").filter({
|
|
6923
|
+
has: this.page.getByText(taskName, {
|
|
6924
|
+
exact: true
|
|
6925
|
+
})
|
|
6926
|
+
}).getByRole("checkbox").scrollIntoViewIfNeeded();
|
|
6927
|
+
await this.page.locator("tr.ng-scope").filter({
|
|
6928
|
+
has: this.page.getByText(taskName, {
|
|
6929
|
+
exact: true
|
|
6930
|
+
})
|
|
6931
|
+
}).getByRole("checkbox").click();
|
|
6932
|
+
await this.page.getByTestId("save-btn").isVisible();
|
|
6933
|
+
await this.page.getByTestId("save-btn").click();
|
|
6934
|
+
await this.page.locator(".saved-text").waitFor();
|
|
6935
|
+
} else if (!isChecked && enable) {
|
|
6936
|
+
await this.page.locator("tr.ng-scope").filter({
|
|
6937
|
+
has: this.page.getByText(taskName, {
|
|
6938
|
+
exact: true
|
|
6939
|
+
})
|
|
6940
|
+
}).getByRole("checkbox").scrollIntoViewIfNeeded();
|
|
6941
|
+
await this.page.locator("tr.ng-scope").filter({
|
|
6942
|
+
has: this.page.getByText(taskName, {
|
|
6943
|
+
exact: true
|
|
6944
|
+
})
|
|
6945
|
+
}).getByRole("checkbox").click();
|
|
6946
|
+
await this.page.getByTestId("save-btn").isVisible();
|
|
6947
|
+
await this.page.getByTestId("save-btn").click();
|
|
6948
|
+
await this.page.locator(".saved-text").waitFor();
|
|
6949
|
+
}
|
|
6950
|
+
}
|
|
6951
|
+
}
|
|
6952
|
+
|
|
6953
|
+
|
|
6586
6954
|
class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
6587
6955
|
constructor(page){
|
|
6588
6956
|
this.page = page;
|
|
@@ -6612,6 +6980,7 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
6612
6980
|
this.rolesPage = new (0, $208f399edeb35aa2$export$7a5b979a220f477c)(page);
|
|
6613
6981
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
6614
6982
|
this.workflowCatalogPage = new (0, $2c7e9876d54521fb$export$5628dfd1b9e94785)(page);
|
|
6983
|
+
this.taskAccessPage = new (0, $2c3301798e261060$export$8da2fa93430be6ca)(page);
|
|
6615
6984
|
}
|
|
6616
6985
|
async openTemplate(id) {
|
|
6617
6986
|
return this.openReleaseOrTemplate(id, false);
|
|
@@ -6749,6 +7118,10 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
6749
7118
|
async clickOnPrimaryLogo() {
|
|
6750
7119
|
await this.page.getByTestId("primary-logo").click();
|
|
6751
7120
|
}
|
|
7121
|
+
async gotoTaskAccessPage() {
|
|
7122
|
+
await this.page.goto("#/task-access");
|
|
7123
|
+
return new (0, $2c3301798e261060$export$8da2fa93430be6ca)(this.page);
|
|
7124
|
+
}
|
|
6752
7125
|
}
|
|
6753
7126
|
|
|
6754
7127
|
|