@digital-ai/devops-page-object-release 0.0.88 → 0.0.90

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
@@ -2906,6 +2906,22 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
2906
2906
  async expectStartFromReleaseURLToBe(parentReleaseURL) {
2907
2907
  (0, $hOLA6$expect)(await this.page.locator(".started-from-release").getAttribute("href")).toContain(parentReleaseURL);
2908
2908
  }
2909
+ async expectFlaggedWith(flagName, flagComment) {
2910
+ const flagButton = this.page.locator(".flags .dropdown-button");
2911
+ await (0, $hOLA6$expect)(flagButton).toHaveClass(new RegExp(`\\b${flagName}\\b`));
2912
+ const input = this.page.locator(".flags input");
2913
+ await (0, $hOLA6$expect)(input).toBeVisible();
2914
+ await (0, $hOLA6$expect)(input).toHaveValue(flagComment);
2915
+ }
2916
+ async flag(flagName, flagComment) {
2917
+ const flagDropdown = this.page.locator("#release-properties .flags .dropdown-button");
2918
+ await flagDropdown.click();
2919
+ const flagPopover = this.page.locator(".flags .flag-picker-popover");
2920
+ const flagOption = flagPopover.locator(`div.${flagName}`);
2921
+ await flagOption.click();
2922
+ await this.page.getByPlaceholder("Set status text...").click();
2923
+ await this.page.getByPlaceholder("Set status text...").fill(flagComment);
2924
+ }
2909
2925
  }
2910
2926
 
2911
2927
 
@@ -3379,6 +3395,19 @@ class $87bbb6d35ad31a00$export$f8f26dd395d7e1bd extends (0, $9626bc9256ce31f7$ex
3379
3395
  }
3380
3396
 
3381
3397
 
3398
+
3399
+
3400
+ class $1161451ccf0a4615$export$46146ef3ab8c339b extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
3401
+ constructor(page){
3402
+ super(page);
3403
+ }
3404
+ // Validate that release status contains the given text
3405
+ async expectReleaseStatusToContain(status) {
3406
+ await (0, $hOLA6$expect)(this.page.locator(".release-status")).toContainText(status);
3407
+ }
3408
+ }
3409
+
3410
+
3382
3411
  class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
3383
3412
  defaultTimeout = 10000;
3384
3413
  constructor(page){
@@ -3386,6 +3415,7 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
3386
3415
  this.addPhaseBtn = this.page.getByTestId("add-phase-btn");
3387
3416
  this.createPage = new (0, $05d91a1d3381a287$export$34addcca3f0ae43f)(page);
3388
3417
  this.ganttPage = new (0, $a546aadb4e6fa16a$export$5a82be0a2a261cc6)(page);
3418
+ this.summaryPage = new (0, $1161451ccf0a4615$export$46146ef3ab8c339b)(page);
3389
3419
  this.tableView = new (0, $19b7e7e46cfe3be0$export$649fde34d823ece7)(page);
3390
3420
  this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
3391
3421
  this.teamsPermissions = new (0, $96c6280ff1c47b81$export$3bc3e140e0dcb075)(page);
@@ -3398,6 +3428,10 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
3398
3428
  await this.openSubPage("Triggers");
3399
3429
  return new (0, $862f65268e488e83$export$fb932093f944abe4)(this.page);
3400
3430
  }
3431
+ async openSummary() {
3432
+ this.openSubPage("Dashboard");
3433
+ return new (0, $1161451ccf0a4615$export$46146ef3ab8c339b)(this.page);
3434
+ }
3401
3435
  async abort(comment = "Abort for testing") {
3402
3436
  await this.page.getByTestId("abort-btn").waitFor();
3403
3437
  await this.page.getByTestId("abort-btn").click();
@@ -9080,6 +9114,7 @@ class $2c3301798e261060$export$8da2fa93430be6ca extends (0, $9626bc9256ce31f7$ex
9080
9114
 
9081
9115
 
9082
9116
 
9117
+
9083
9118
  class $e72552cbf941ecfa$export$b8a61e5c71402559 {
9084
9119
  constructor(page){
9085
9120
  this.page = page;
@@ -9092,6 +9127,7 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
9092
9127
  this.header = new (0, $aa1ba8c8de3c0679$export$2fb4351c41ce6e7a)(page);
9093
9128
  this.managePluginsPage = new (0, $ecd0868a4240184d$export$7b434e00c788d0bf)(page);
9094
9129
  this.releasePage = new (0, $43cbcdfccb6c2a76$export$f43492e8ac3c566)(page);
9130
+ this.summaryPage = new (0, $1161451ccf0a4615$export$46146ef3ab8c339b)(page);
9095
9131
  this.settingsMenu = new (0, $f1bf370bb7f683ca$export$1d7840d5cdc861d5)(page);
9096
9132
  this.systemSettingsPage = new (0, $2cbb78eec86d0a9f$export$2edf430132ca35d0)(page);
9097
9133
  this.usersPage = new (0, $2cb6a6ac6b17e85f$export$107317390f5aa598)(page);