@digital-ai/devops-page-object-release 0.0.31 → 0.0.33

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/module.js CHANGED
@@ -389,7 +389,9 @@ 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("#action-toolbar").getByTestId("dot-button").click();
392
+ await this.page.locator("button", {
393
+ hasText: "New variable"
394
+ }).click();
393
395
  await this.page.fill(`[name="fieldKey"]`, variableName);
394
396
  await this.page.locator(".variable-label input").fill(labelname);
395
397
  if (description) await this.page.locator(".variable-description input").fill(description);
@@ -609,7 +611,13 @@ class $dfc4ce40cbd0eb71$var$VariableModal extends (0, $9626bc9256ce31f7$export$2
609
611
  async createPossibleValuesVariable(variableName) {
610
612
  await this.page.locator(".variable-toggle button").click();
611
613
  await this.page.locator(".ui-autocomplete-input").fill(variableName);
612
- await this.page.locator(".ui-menu-item-wrapper").filter({
614
+ const check = await this.page.locator(".ui-menu-item-wrapper").getByText("${" + variableName + "}", {
615
+ exact: true
616
+ }).isVisible();
617
+ if (check) await this.page.locator(".ui-menu-item-wrapper").getByText("${" + variableName + "}", {
618
+ exact: true
619
+ }).click();
620
+ else await this.page.locator(".ui-menu-item-wrapper").filter({
613
621
  hasText: `${variableName}`
614
622
  }).click();
615
623
  }
@@ -936,6 +944,15 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
936
944
  await this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`).focus();
937
945
  return this.railLocator.locator(`input[id="${propertyName}"]`).inputValue();
938
946
  }
947
+ async getStringListField(propertyName) {
948
+ return new $90bb70a7e909e500$export$2d646ce41126d906(propertyName, this.page);
949
+ }
950
+ async getStringSetField(propertyName) {
951
+ return new $90bb70a7e909e500$export$1a41fd2ab8394c46(propertyName, this.page);
952
+ }
953
+ async getStringMapField(propertyName) {
954
+ return new $90bb70a7e909e500$export$62811a109bb4377d(propertyName, this.page);
955
+ }
939
956
  async setValueFromString(propertyName, value) {
940
957
  await this.railLocator.locator(`input[name=${propertyName}]`).focus();
941
958
  await this.railLocator.locator(`input[id="${propertyName}"]`).fill(value);
@@ -971,8 +988,11 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
971
988
  await (0, $hOLA6$expect)(this.railLocator.locator(`#${variableId}`)).toHaveValue(value);
972
989
  } else await (0, $hOLA6$expect)(this.railLocator.locator(`#${variableId}`)).not.toBeVisible();
973
990
  }
974
- async selectReleaseIdInOutputProperties(propertyName, variableName) {
975
- await this.railLocator.locator(`#${propertyName}`).fill(variableName);
991
+ async expectValueInInputProperties(propertyName, value, expected = true) {
992
+ if (expected) await (0, $hOLA6$expect)(this.railLocator.locator(`[name='${propertyName}']`)).toHaveValue(value);
993
+ }
994
+ async selectReleaseIdInOutputProperties(objectID, variableName) {
995
+ await this.railLocator.locator(`#${objectID}`).fill(variableName);
976
996
  await this.page.getByRole("option", {
977
997
  name: variableName
978
998
  }).click();
@@ -987,6 +1007,10 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
987
1007
  async expectValueFromString(propertyName, propertyValue) {
988
1008
  return await (0, $hOLA6$expect)(this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`)).toHaveText(propertyValue);
989
1009
  }
1010
+ async expectValueFromResultString(propertyName, value) {
1011
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${propertyName}"]`).getByText(value)).toBeVisible();
1012
+ return this;
1013
+ }
990
1014
  async expectRiskProfileValue(value) {
991
1015
  await (0, $hOLA6$expect)(this.railLocator.locator("#riskProfileId")).toHaveValue(value);
992
1016
  }
@@ -1017,12 +1041,6 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
1017
1041
  await this.page.locator("#release-tags").press("Enter");
1018
1042
  }
1019
1043
  }
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
1044
  async setScript(script) {
1027
1045
  await this.scriptTextArea.clear();
1028
1046
  await this.scriptTextArea.fill(script);
@@ -1052,7 +1070,9 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
1052
1070
  await this.page.getByTestId("single-action-button").click();
1053
1071
  await this.page.getByTestId("task-action-comment").click();
1054
1072
  await this.page.getByTestId("task-action-comment").fill(comment);
1055
- await this.page.getByTestId("dot-button").click();
1073
+ await this.page.locator("button", {
1074
+ hasText: "Abort"
1075
+ }).click();
1056
1076
  }
1057
1077
  async expectDependenciesDisplayed(dependencies) {
1058
1078
  await this.railLocator.locator(".gate-task-dependencies").waitFor();
@@ -1313,6 +1333,14 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
1313
1333
  async close() {
1314
1334
  await this.page.locator("task-drawer .dot-drawer .task-drawer-header").getByTestId("close-btn").click();
1315
1335
  }
1336
+ async deselectValue(ObjectID) {
1337
+ await this.page.locator(`#${ObjectID}`).hover();
1338
+ await this.page.getByRole("button", {
1339
+ name: "Clear"
1340
+ }).click();
1341
+ await (0, $hOLA6$expect)(this.page.locator(`#${ObjectID}`)).toHaveValue("");
1342
+ return this;
1343
+ }
1316
1344
  }
1317
1345
  class $90bb70a7e909e500$export$fbbf45eff21470e3 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1318
1346
  constructor(page){
@@ -1403,6 +1431,103 @@ class $90bb70a7e909e500$export$fbbf45eff21470e3 extends (0, $9626bc9256ce31f7$ex
1403
1431
  }).click();
1404
1432
  }
1405
1433
  }
1434
+ class $90bb70a7e909e500$export$2d646ce41126d906 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1435
+ constructor(propertyName, page){
1436
+ super(page);
1437
+ this.propertyName = propertyName;
1438
+ }
1439
+ async setValueFromStringList(value) {
1440
+ await this.page.locator(`input[id="${this.propertyName}"]`).focus();
1441
+ await this.page.locator(`input[id="${this.propertyName}"]`).fill(value);
1442
+ await this.page.locator(`[data-test-id="${this.propertyName}"] .icon-add`).click();
1443
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] .list`).getByText(value)).toBeVisible();
1444
+ return this;
1445
+ }
1446
+ async expectStringListCount(count) {
1447
+ (0, $hOLA6$expect)(await this.page.locator(`[data-test-id="${this.propertyName}"] .list`).count()).toBe(count);
1448
+ return this;
1449
+ }
1450
+ async removeValueFromStringList(value) {
1451
+ await this.page.locator(`[data-test-id="${this.propertyName}"] .list`).filter({
1452
+ hasText: value
1453
+ }).locator(".icon-close").click();
1454
+ return this;
1455
+ }
1456
+ async expectInputFieldDisabled() {
1457
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] input`)).not.toBeEditable();
1458
+ return this;
1459
+ }
1460
+ async expectValueFromStringList(value) {
1461
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] .list`).getByText(value)).toBeVisible();
1462
+ return this;
1463
+ }
1464
+ }
1465
+ class $90bb70a7e909e500$export$1a41fd2ab8394c46 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1466
+ constructor(propertyName, page){
1467
+ super(page);
1468
+ this.propertyName = propertyName;
1469
+ }
1470
+ async setValueFromStringSet(value) {
1471
+ await this.page.locator(`input[id="${this.propertyName}"]`).focus();
1472
+ await this.page.locator(`input[id="${this.propertyName}"]`).fill(value);
1473
+ await this.page.locator(`[data-test-id="${this.propertyName}"] .icon-add`).click();
1474
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] .list`).getByText(value)).toBeVisible();
1475
+ return this;
1476
+ }
1477
+ async expectInputFieldDisabled() {
1478
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] input`)).not.toBeEditable();
1479
+ return this;
1480
+ }
1481
+ async expectAddButtonDisabled() {
1482
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${this.propertyName}"] .icon-add`)).toBeDisabled();
1483
+ return this;
1484
+ }
1485
+ async expectStringSetCount(count) {
1486
+ (0, $hOLA6$expect)(await this.page.locator(`[data-test-id="${this.propertyName}"] .list`).count()).toBe(count);
1487
+ return this;
1488
+ }
1489
+ async removeValueFromStringSet(key) {
1490
+ await this.page.locator(`[data-test-id="${this.propertyName}"] .list`).filter({
1491
+ hasText: key
1492
+ }).locator(".icon-close").click();
1493
+ return this;
1494
+ }
1495
+ }
1496
+ class $90bb70a7e909e500$export$62811a109bb4377d extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1497
+ constructor(propertyName, page){
1498
+ super(page);
1499
+ this.propertyName = propertyName;
1500
+ }
1501
+ async setValueFromMap(key, value) {
1502
+ await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.add-new-button`).click();
1503
+ await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-key-input"]`).fill(key);
1504
+ await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-value-input"]`).fill(value);
1505
+ await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.map-row-save-button`).click();
1506
+ await (0, $hOLA6$expect)(this.page.locator(`.map-data-row .map-key`).getByText(key)).toBeVisible();
1507
+ }
1508
+ async removeValueFromMap(key) {
1509
+ await this.page.locator(`.map-data-row`).filter({
1510
+ has: this.page.locator(`.map-key`).getByText(key)
1511
+ }).locator(`.icon-delete`).click();
1512
+ return this;
1513
+ }
1514
+ async expectStringMapCount(count) {
1515
+ (0, $hOLA6$expect)(await this.page.locator(".map-data-row").count()).toBe(count);
1516
+ return this;
1517
+ }
1518
+ async expectAddButtonDisabledForMap(key, value) {
1519
+ await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.add-new-button`).click();
1520
+ await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-key-input"]`).fill(key);
1521
+ await (0, $hOLA6$expect)(this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.add-new-button`)).toBeDisabled();
1522
+ await this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-value-input"]`).fill(value);
1523
+ await (0, $hOLA6$expect)(this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] button.add-new-button`)).toBeDisabled();
1524
+ return this;
1525
+ }
1526
+ async expectInputFieldDisabledForMap() {
1527
+ await (0, $hOLA6$expect)(this.page.locator(`.input-with-map[data-test-id="${this.propertyName}"] input[id="new-row-value-input"]`)).not.toBeVisible();
1528
+ return this;
1529
+ }
1530
+ }
1406
1531
 
1407
1532
 
1408
1533
 
@@ -1576,12 +1701,17 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
1576
1701
  async startNow(comment) {
1577
1702
  await this.startButton.click();
1578
1703
  await this.commentBox.fill(comment);
1579
- await this.page.getByTestId("dot-button").click();
1704
+ await this.page.locator("button", {
1705
+ hasText: "Start now"
1706
+ }).click();
1580
1707
  await (0, $hOLA6$expect)(this.startButton).not.toBeVisible();
1581
1708
  }
1582
1709
  async expectTaskTitle(taskTitle) {
1583
1710
  await (0, $hOLA6$expect)(this.page.locator(".task-drawer .task-title-input .dot-view-mode-typography")).toContainText(taskTitle);
1584
1711
  }
1712
+ async expectCompleteButtonEnabled() {
1713
+ await (0, $hOLA6$expect)(this.completeButton).toBeEnabled();
1714
+ }
1585
1715
  async setTitle(title) {
1586
1716
  await this.page.getByTestId("task-title-input-view-mode-typography").click();
1587
1717
  await this.page.getByTestId("task-title-input-input").clear();
@@ -2605,7 +2735,9 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
2605
2735
  }).click();
2606
2736
  await this.page.getByTestId("task-action-comment").click();
2607
2737
  await this.page.getByTestId("task-action-comment").fill(comment);
2608
- await this.page.getByTestId("dot-button").click();
2738
+ await this.page.locator("button", {
2739
+ hasText: "Reopen"
2740
+ }).click();
2609
2741
  }
2610
2742
  async openTaskDrawer(taskName) {
2611
2743
  await this.page.locator(".task-header").getByText(taskName, {
@@ -2829,7 +2961,6 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
2829
2961
  hasText: phaseName
2830
2962
  });
2831
2963
  this.commentBox = this.page.locator(`.input-block-level`);
2832
- this.confirm = this.page.getByTestId("dot-button");
2833
2964
  this.contextMenuButton = this.page.locator("#context-menu-container li");
2834
2965
  this.dateUtil = new (0, $71075ce65fcede1d$export$9b575f14aa5e09a1)(page);
2835
2966
  }
@@ -2926,6 +3057,44 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
2926
3057
  exact: true
2927
3058
  }).click();
2928
3059
  }
3060
+ async changeTypeFromContextMenu(taskTitle, taskGroup, taskType) {
3061
+ await this.openContextMenuForTask(taskTitle);
3062
+ await this.page.locator(".dropdown-menu li").getByText("Change type").click();
3063
+ await this.page.locator("#task-selector").fill(taskGroup);
3064
+ await this.page.getByTestId(taskType).click();
3065
+ await this.page.getByRole("button", {
3066
+ name: "Change type"
3067
+ }).click();
3068
+ return this;
3069
+ }
3070
+ async expectChangeTypeContextMenuDisabled(taskTitle, taskGroup, taskType) {
3071
+ await this.openContextMenuForTask(taskTitle);
3072
+ await this.page.locator(".dropdown-menu li").getByText("Change type").click();
3073
+ await this.page.locator("#task-selector").fill(taskGroup);
3074
+ await this.page.getByTestId(taskType).click();
3075
+ await (0, $hOLA6$expect)(this.page.getByRole("button", {
3076
+ name: "Change type"
3077
+ })).toBeDisabled();
3078
+ await this.page.getByRole("button", {
3079
+ name: "Cancel"
3080
+ }).click();
3081
+ return this;
3082
+ }
3083
+ async expectGateCheckMark() {
3084
+ await (0, $hOLA6$expect)(this.page.locator(".task-type-gatetask .marker-check-icon")).toBeVisible();
3085
+ return this;
3086
+ }
3087
+ async expectNoOptionInChangeType(taskTitle, taskGroup) {
3088
+ await this.openContextMenuForTask(taskTitle);
3089
+ await this.page.locator(".dropdown-menu li").getByText("Change type").click();
3090
+ await this.page.locator("#task-selector").fill(taskGroup);
3091
+ await (0, $hOLA6$expect)(this.page.getByText("No options")).toBeVisible();
3092
+ await this.page.getByTestId("ArrowDropDownIcon").click();
3093
+ await this.page.getByRole("button", {
3094
+ name: "Cancel"
3095
+ }).click();
3096
+ return this;
3097
+ }
2929
3098
  async assignToMeFromContextMenu(taskTitle) {
2930
3099
  await this.openContextMenuForTask(taskTitle);
2931
3100
  await this.page.locator(".dropdown-menu li").getByText("Assign to me").click();
@@ -3067,6 +3236,18 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
3067
3236
  await (0, $hOLA6$expect)(this.phaseLocator.locator(".task-generator .add-task")).toHaveCount(0);
3068
3237
  await (0, $hOLA6$expect)(this.phaseLocator.locator(".display")).toHaveCount(0);
3069
3238
  }
3239
+ async expectTaskFailureManualPermission() {
3240
+ await this.phaseLocator.getByText("Add task").click();
3241
+ const checkboxElement = await this.page.getByTestId("save-select-task-btn").isEnabled();
3242
+ if (!checkboxElement) {
3243
+ await this.page.getByTestId("cancel-select-task-btn").click();
3244
+ await this.phaseLocator.getByText("Add task").click();
3245
+ }
3246
+ await this.page.getByTestId("save-select-task-btn").click();
3247
+ await (0, $hOLA6$expect)(this.page.locator("p").filter({
3248
+ hasText: "Your request has been rejected, your permissions may have been revoked."
3249
+ })).toBeVisible();
3250
+ }
3070
3251
  }
3071
3252
  class $43cbcdfccb6c2a76$var$RestartPhaseModel extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
3072
3253
  constructor(page){
@@ -3209,7 +3390,7 @@ class $27cd192f30944b0c$export$572f40d328c1d028 extends (0, $9626bc9256ce31f7$ex
3209
3390
  super(page);
3210
3391
  this.dateUtil = new (0, $71075ce65fcede1d$export$9b575f14aa5e09a1)(page);
3211
3392
  this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
3212
- this.newReleaseGroupButton = page.getByTestId("dot-button");
3393
+ this.newReleaseGroupButton = page.getByText("New release group");
3213
3394
  this.dateMonth = new Date();
3214
3395
  }
3215
3396
  async createGroup(groupName, startDate, endDate) {
@@ -3358,7 +3539,7 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
3358
3539
  this.addDescription = page.getByPlaceholder("Set description...");
3359
3540
  }
3360
3541
  async clickNewDeliveryPattern() {
3361
- await this.page.getByTestId("dot-button").click();
3542
+ await this.page.getByText("New delivery pattern").click();
3362
3543
  await (0, $hOLA6$expect)(this.page.getByRole("heading", {
3363
3544
  name: "Create delivery pattern"
3364
3545
  })).toBeVisible();
@@ -3456,7 +3637,9 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
3456
3637
  })).not.toBeVisible();
3457
3638
  }
3458
3639
  async createNewDelivery(deliveryName, deliveryDes, setAutoComplete) {
3459
- await this.page.getByTestId("dot-button").click();
3640
+ await this.page.getByRole("button", {
3641
+ name: "New delivery"
3642
+ }).click();
3460
3643
  await this.addName.fill(deliveryName);
3461
3644
  await this.addDescription.click();
3462
3645
  if (deliveryDes) await this.addDescription.fill(deliveryDes);
@@ -4164,7 +4347,9 @@ class $ecd0868a4240184d$export$7b434e00c788d0bf extends (0, $9626bc9256ce31f7$ex
4164
4347
  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
4348
  }
4166
4349
  async clickUpload() {
4167
- await this.page.getByTestId("dot-button").click();
4350
+ await this.page.locator("button", {
4351
+ hasText: "Upload"
4352
+ }).click();
4168
4353
  }
4169
4354
  }
4170
4355
 
@@ -4205,7 +4390,7 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
4205
4390
  async editUserProfile(email) {
4206
4391
  await this.page.getByLabel("Email address").click();
4207
4392
  await this.page.getByLabel("Email address").fill(email);
4208
- await this.page.getByTestId("dot-button").click();
4393
+ await this.page.getByText("Save").click();
4209
4394
  (0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
4210
4395
  }
4211
4396
  async generateNewAccessToken(tokenName, expiryOptions) {
@@ -4718,7 +4903,16 @@ class $3a340a3f4fd8f04d$export$43682cddead1dd78 extends (0, $9626bc9256ce31f7$ex
4718
4903
  await this.page.getByRole("button", {
4719
4904
  name: "Today"
4720
4905
  }).click();
4906
+ await this.page.locator(".tl-event-title").getByText(release_title).scrollIntoViewIfNeeded();
4721
4907
  await this.page.locator(".tl-event-title").getByText(release_title).click();
4908
+ await this.page.locator(".release-modal-container").waitFor({
4909
+ state: "visible"
4910
+ });
4911
+ const modalWindow = await this.page.locator(".release-modal-container").isVisible();
4912
+ if (!modalWindow) {
4913
+ await this.page.locator(".tl-event-title").getByText(release_title).scrollIntoViewIfNeeded();
4914
+ await this.page.locator(".tl-event-title").getByText(release_title).click();
4915
+ }
4722
4916
  await this.page.locator(".release-modal-container").locator(".xl-icon.release-icon").click();
4723
4917
  const releaseurl = `/#/releases/${release_id}`;
4724
4918
  const currentURL = await this.page.url();
@@ -4916,7 +5110,7 @@ class $f48771b486a3eb8f$export$a87f0ae8695e74be extends (0, $9626bc9256ce31f7$ex
4916
5110
  return new $f48771b486a3eb8f$var$ReleaseVariableModal(this.page);
4917
5111
  }
4918
5112
  async addNewVariable(variableName, labelname, description) {
4919
- await this.page.locator("#action-toolbar").getByTestId("dot-button").click();
5113
+ await this.page.locator("#action-toolbar").getByText("New variable").click();
4920
5114
  await this.page.fill(`[name="fieldKey"]`, variableName);
4921
5115
  await this.page.locator(".variable-label input").fill(labelname);
4922
5116
  if (description) await this.page.locator(".variable-description input").fill(description);
@@ -5225,8 +5419,9 @@ class $f48771b486a3eb8f$var$DeleteVariableModel extends (0, $9626bc9256ce31f7$ex
5225
5419
  class $c37c93912f458e81$export$60c3bfa6385e2a10 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
5226
5420
  constructor(page){
5227
5421
  super(page);
5228
- this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
5229
5422
  this.commentBox = this.page.locator(`.input-block-level`);
5423
+ this.gridView = new $c37c93912f458e81$var$GridView(page);
5424
+ this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
5230
5425
  }
5231
5426
  async openTask(taskName) {
5232
5427
  await this.filterTaskByTitle(taskName);
@@ -5439,6 +5634,75 @@ class $c37c93912f458e81$export$60c3bfa6385e2a10 extends (0, $9626bc9256ce31f7$ex
5439
5634
  async changeGroupView() {
5440
5635
  await this.page.locator("#group-tasks-by-release").click();
5441
5636
  }
5637
+ async enableGroupByReleaseView() {
5638
+ await this.page.getByRole("checkbox", {
5639
+ name: "Group by release"
5640
+ }).check();
5641
+ }
5642
+ async disableGroupByReleaseView() {
5643
+ await this.page.getByRole("checkbox", {
5644
+ name: "Group by release"
5645
+ }).uncheck();
5646
+ }
5647
+ async switchToGridView() {
5648
+ await this.page.locator(".xl-icon.grid-icon").click();
5649
+ return this.gridView;
5650
+ }
5651
+ }
5652
+ class $c37c93912f458e81$var$GridView extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
5653
+ constructor(page){
5654
+ super(page);
5655
+ this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
5656
+ }
5657
+ async expectTaskCountInGridView(count) {
5658
+ await (0, $hOLA6$expect)(this.page.locator("task-grid .task-wrapper")).toHaveCount(count);
5659
+ }
5660
+ // eslint-disable-next-line max-params
5661
+ async expectTaskDetailsInGridView(taskId, taskStatus, taskTitle, assignedTo, release, phase, startDate) {
5662
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] .label`)).toContainText(taskStatus);
5663
+ await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] .title`)).toContainText(taskTitle);
5664
+ if (assignedTo) await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] span`).filter({
5665
+ hasText: "Assigned to "
5666
+ }).first()).toContainText(assignedTo);
5667
+ if (release) await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] [data-test="release"]`)).toContainText(release);
5668
+ if (phase) await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] [data-test="phase"] span`)).toContainText(phase);
5669
+ if (startDate) await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] [data-test="started"]`)).toContainText(startDate);
5670
+ else await (0, $hOLA6$expect)(this.page.locator(`[data-test-id="${taskId}"] .caption`).getByText("Started")).not.toBeVisible();
5671
+ return this;
5672
+ }
5673
+ async openTaskDrawerFromGridView(taskId, taskTitle) {
5674
+ await this.page.locator(`[data-test-id="${taskId}"] .title`).filter({
5675
+ hasText: taskTitle
5676
+ }).click();
5677
+ return this.taskDrawer;
5678
+ }
5679
+ async openContextualMenu(taskId) {
5680
+ await this.page.locator(`[data-test-id="${taskId}"] .xl-icon.options-icon`).click();
5681
+ }
5682
+ async expectContextMenuHas(taskId, enabled, disabled) {
5683
+ await this.openContextualMenu(taskId);
5684
+ 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();
5685
+ 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();
5686
+ return this;
5687
+ }
5688
+ async waitForTaskNotDisplayed(taskId) {
5689
+ await (0, $hOLA6$expect)(this.page.locator(`div.task[data-test-id=${taskId}]`)).not.toBeVisible();
5690
+ return this;
5691
+ }
5692
+ async triggerContextMenuAction(action) {
5693
+ await this.page.locator(`#context-menu-container li a`).filter({
5694
+ hasText: action
5695
+ }).click();
5696
+ if (action === "Complete") {
5697
+ await this.page.locator("#modal textarea[mentio]").isVisible();
5698
+ await this.page.locator("#modal textarea[mentio]").fill("complete");
5699
+ await this.page.locator("#modal button.primary").filter({
5700
+ hasText: "Complete"
5701
+ }).click();
5702
+ return this;
5703
+ }
5704
+ return this;
5705
+ }
5442
5706
  }
5443
5707
 
5444
5708
 
@@ -6579,6 +6843,56 @@ class $6c0f5b52769b32c3$var$ConfigurationInstancePage extends (0, $9626bc9256ce3
6579
6843
  }
6580
6844
 
6581
6845
 
6846
+
6847
+ class $2c3301798e261060$export$8da2fa93430be6ca extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
6848
+ constructor(page){
6849
+ super(page);
6850
+ }
6851
+ async setTaskAvailableToAllUsers(taskName, enable) {
6852
+ await this.page.locator("tr.ng-scope").filter({
6853
+ has: this.page.getByText(taskName, {
6854
+ exact: true
6855
+ })
6856
+ }).getByRole("checkbox").scrollIntoViewIfNeeded();
6857
+ const checkboxElement = this.page.locator("tr.ng-scope").filter({
6858
+ has: this.page.getByText(taskName, {
6859
+ exact: true
6860
+ })
6861
+ }).getByRole("checkbox");
6862
+ const isChecked = await checkboxElement.isChecked();
6863
+ if (isChecked && !enable) {
6864
+ await this.page.locator("tr.ng-scope").filter({
6865
+ has: this.page.getByText(taskName, {
6866
+ exact: true
6867
+ })
6868
+ }).getByRole("checkbox").scrollIntoViewIfNeeded();
6869
+ await this.page.locator("tr.ng-scope").filter({
6870
+ has: this.page.getByText(taskName, {
6871
+ exact: true
6872
+ })
6873
+ }).getByRole("checkbox").click();
6874
+ await this.page.getByTestId("save-btn").isVisible();
6875
+ await this.page.getByTestId("save-btn").click();
6876
+ await this.page.locator(".saved-text").waitFor();
6877
+ } else if (!isChecked && enable) {
6878
+ await this.page.locator("tr.ng-scope").filter({
6879
+ has: this.page.getByText(taskName, {
6880
+ exact: true
6881
+ })
6882
+ }).getByRole("checkbox").scrollIntoViewIfNeeded();
6883
+ await this.page.locator("tr.ng-scope").filter({
6884
+ has: this.page.getByText(taskName, {
6885
+ exact: true
6886
+ })
6887
+ }).getByRole("checkbox").click();
6888
+ await this.page.getByTestId("save-btn").isVisible();
6889
+ await this.page.getByTestId("save-btn").click();
6890
+ await this.page.locator(".saved-text").waitFor();
6891
+ }
6892
+ }
6893
+ }
6894
+
6895
+
6582
6896
  class $e72552cbf941ecfa$export$b8a61e5c71402559 {
6583
6897
  constructor(page){
6584
6898
  this.page = page;
@@ -6608,6 +6922,7 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
6608
6922
  this.rolesPage = new (0, $208f399edeb35aa2$export$7a5b979a220f477c)(page);
6609
6923
  this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
6610
6924
  this.workflowCatalogPage = new (0, $2c7e9876d54521fb$export$5628dfd1b9e94785)(page);
6925
+ this.taskAccessPage = new (0, $2c3301798e261060$export$8da2fa93430be6ca)(page);
6611
6926
  }
6612
6927
  async openTemplate(id) {
6613
6928
  return this.openReleaseOrTemplate(id, false);
@@ -6745,6 +7060,10 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
6745
7060
  async clickOnPrimaryLogo() {
6746
7061
  await this.page.getByTestId("primary-logo").click();
6747
7062
  }
7063
+ async gotoTaskAccessPage() {
7064
+ await this.page.goto("#/task-access");
7065
+ return new (0, $2c3301798e261060$export$8da2fa93430be6ca)(this.page);
7066
+ }
6748
7067
  }
6749
7068
 
6750
7069