@digital-ai/devops-page-object-release 0.0.0-snapshot-20251027110813 → 0.0.0-snapshot-20251029100901

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,21 @@ 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
+ if (await input.isVisible()) await (0, $hOLA6$expect)(input).toHaveValue(flagComment);
2914
+ }
2915
+ async flag(flagName, flagComment) {
2916
+ const flagDropdown = this.page.locator("#release-properties .flags .dropdown-button");
2917
+ await flagDropdown.click();
2918
+ const flagPopover = this.page.locator(".flags .flag-picker-popover");
2919
+ const flagOption = flagPopover.locator(`div.${flagName}`);
2920
+ await flagOption.click();
2921
+ await this.page.getByPlaceholder("Set status text...").click();
2922
+ await this.page.getByPlaceholder("Set status text...").fill(flagComment);
2923
+ }
2909
2924
  }
2910
2925
 
2911
2926
 
@@ -3315,12 +3330,15 @@ class $87bbb6d35ad31a00$export$f8f26dd395d7e1bd extends (0, $9626bc9256ce31f7$ex
3315
3330
  await (0, $hOLA6$expect)(icExpandTreeview1).not.toBeVisible();
3316
3331
  }
3317
3332
  async openSideNavMenu(menuItem) {
3318
- await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
3319
- exact: true
3320
- }).scrollIntoViewIfNeeded();
3321
- await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
3333
+ const menuLocator = this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
3322
3334
  exact: true
3323
- }).click();
3335
+ });
3336
+ await menuLocator.waitFor({
3337
+ state: "visible"
3338
+ });
3339
+ await this.page.waitForTimeout(500);
3340
+ await menuLocator.scrollIntoViewIfNeeded();
3341
+ await menuLocator.click();
3324
3342
  }
3325
3343
  async openNestedMenuItem(nestedMenuItem) {
3326
3344
  await this.page.locator(".MuiList-root li").getByText(nestedMenuItem, {
@@ -3379,19 +3397,6 @@ class $87bbb6d35ad31a00$export$f8f26dd395d7e1bd extends (0, $9626bc9256ce31f7$ex
3379
3397
  }
3380
3398
 
3381
3399
 
3382
-
3383
-
3384
- class $1161451ccf0a4615$export$46146ef3ab8c339b extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
3385
- constructor(page){
3386
- super(page);
3387
- }
3388
- // Validate that release status contains the given text
3389
- async expectReleaseStatusToContain(status) {
3390
- await (0, $hOLA6$expect)(this.page.locator(".release-status")).toContainText(status);
3391
- }
3392
- }
3393
-
3394
-
3395
3400
  class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
3396
3401
  defaultTimeout = 10000;
3397
3402
  constructor(page){
@@ -3399,7 +3404,6 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
3399
3404
  this.addPhaseBtn = this.page.getByTestId("add-phase-btn");
3400
3405
  this.createPage = new (0, $05d91a1d3381a287$export$34addcca3f0ae43f)(page);
3401
3406
  this.ganttPage = new (0, $a546aadb4e6fa16a$export$5a82be0a2a261cc6)(page);
3402
- this.summaryPage = new (0, $1161451ccf0a4615$export$46146ef3ab8c339b)(page);
3403
3407
  this.tableView = new (0, $19b7e7e46cfe3be0$export$649fde34d823ece7)(page);
3404
3408
  this.taskDrawer = new (0, $8e39246218b802fc$export$e946776eae644790)(page);
3405
3409
  this.teamsPermissions = new (0, $96c6280ff1c47b81$export$3bc3e140e0dcb075)(page);
@@ -3412,9 +3416,9 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
3412
3416
  await this.openSubPage("Triggers");
3413
3417
  return new (0, $862f65268e488e83$export$fb932093f944abe4)(this.page);
3414
3418
  }
3415
- async openSummary() {
3416
- this.openSubPage("Dashboard");
3417
- return new (0, $1161451ccf0a4615$export$46146ef3ab8c339b)(this.page);
3419
+ async openEditor() {
3420
+ await this.openSubPage("Flow");
3421
+ return new $43cbcdfccb6c2a76$export$f43492e8ac3c566(this.page);
3418
3422
  }
3419
3423
  async abort(comment = "Abort for testing") {
3420
3424
  await this.page.getByTestId("abort-btn").waitFor();