@digital-ai/devops-page-object-release 0.0.0-snapshot-20251030121554 → 0.0.0-snapshot-20251103091229

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 CHANGED
@@ -1,11 +1,23 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20251030121554
3
+ ## 0.0.0-snapshot-20251103091229
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 246bc7c: S-125225: Update new tasks page filters
8
8
 
9
+ ## 0.0.90
10
+
11
+ ### Patch Changes
12
+
13
+ - b1f79b2: S-125960: Migrated Release summary scenario from cypress to playwright
14
+
15
+ ## 0.0.89
16
+
17
+ ### Patch Changes
18
+
19
+ - ed632e1: S-125939: Migrated Release flag scenario from cypress to playwright
20
+
9
21
  ## 0.0.88
10
22
 
11
23
  ### Patch Changes
package/dist/main.js CHANGED
@@ -3853,6 +3853,22 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
3853
3853
  async expectStartFromReleaseURLToBe(parentReleaseURL) {
3854
3854
  (0, $kKeXs$playwrighttest.expect)(await this.page.locator(".started-from-release").getAttribute("href")).toContain(parentReleaseURL);
3855
3855
  }
3856
+ async expectFlaggedWith(flagName, flagComment) {
3857
+ const flagButton = this.page.locator(".flags .dropdown-button");
3858
+ await (0, $kKeXs$playwrighttest.expect)(flagButton).toHaveClass(new RegExp(`\\b${flagName}\\b`));
3859
+ const input = this.page.locator(".flags input");
3860
+ await (0, $kKeXs$playwrighttest.expect)(input).toBeVisible();
3861
+ await (0, $kKeXs$playwrighttest.expect)(input).toHaveValue(flagComment);
3862
+ }
3863
+ async flag(flagName, flagComment) {
3864
+ const flagDropdown = this.page.locator("#release-properties .flags .dropdown-button");
3865
+ await flagDropdown.click();
3866
+ const flagPopover = this.page.locator(".flags .flag-picker-popover");
3867
+ const flagOption = flagPopover.locator(`div.${flagName}`);
3868
+ await flagOption.click();
3869
+ await this.page.getByPlaceholder("Set status text...").click();
3870
+ await this.page.getByPlaceholder("Set status text...").fill(flagComment);
3871
+ }
3856
3872
  }
3857
3873
 
3858
3874
 
@@ -4326,6 +4342,19 @@ class $2c89ba54932fbba8$export$f8f26dd395d7e1bd extends (0, $f8721861c660dd88$ex
4326
4342
  }
4327
4343
 
4328
4344
 
4345
+
4346
+
4347
+ class $fd3e87c08fb5976e$export$46146ef3ab8c339b extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
4348
+ constructor(page){
4349
+ super(page);
4350
+ }
4351
+ // Validate that release status contains the given text
4352
+ async expectReleaseStatusToContain(status) {
4353
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release-status")).toContainText(status);
4354
+ }
4355
+ }
4356
+
4357
+
4329
4358
  class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
4330
4359
  defaultTimeout = 10000;
4331
4360
  constructor(page){
@@ -4333,6 +4362,7 @@ class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
4333
4362
  this.addPhaseBtn = this.page.getByTestId("add-phase-btn");
4334
4363
  this.createPage = new (0, $3d3f3946c54f5897$export$34addcca3f0ae43f)(page);
4335
4364
  this.ganttPage = new (0, $e8395395d01b66bb$export$5a82be0a2a261cc6)(page);
4365
+ this.summaryPage = new (0, $fd3e87c08fb5976e$export$46146ef3ab8c339b)(page);
4336
4366
  this.tableView = new (0, $c5c393ea4aecca6c$export$649fde34d823ece7)(page);
4337
4367
  this.taskDrawer = new (0, $6a21661eb4695574$export$e946776eae644790)(page);
4338
4368
  this.teamsPermissions = new (0, $d330a7d6f7926d53$export$3bc3e140e0dcb075)(page);
@@ -4345,6 +4375,10 @@ class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
4345
4375
  await this.openSubPage("Triggers");
4346
4376
  return new (0, $133601cfe0486710$export$fb932093f944abe4)(this.page);
4347
4377
  }
4378
+ async openSummary() {
4379
+ this.openSubPage("Dashboard");
4380
+ return new (0, $fd3e87c08fb5976e$export$46146ef3ab8c339b)(this.page);
4381
+ }
4348
4382
  async abort(comment = "Abort for testing") {
4349
4383
  await this.page.getByTestId("abort-btn").waitFor();
4350
4384
  await this.page.getByTestId("abort-btn").click();
@@ -10014,6 +10048,7 @@ class $267ea1f27d28a032$export$8da2fa93430be6ca extends (0, $f8721861c660dd88$ex
10014
10048
 
10015
10049
 
10016
10050
 
10051
+
10017
10052
  class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
10018
10053
  constructor(page){
10019
10054
  this.page = page;
@@ -10026,6 +10061,7 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
10026
10061
  this.header = new (0, $00fc48341ebf7de4$export$2fb4351c41ce6e7a)(page);
10027
10062
  this.managePluginsPage = new (0, $b4d98f757ef92467$export$7b434e00c788d0bf)(page);
10028
10063
  this.releasePage = new (0, $9b9a8c3da392d020$export$f43492e8ac3c566)(page);
10064
+ this.summaryPage = new (0, $fd3e87c08fb5976e$export$46146ef3ab8c339b)(page);
10029
10065
  this.settingsMenu = new (0, $7867194f18360347$export$1d7840d5cdc861d5)(page);
10030
10066
  this.systemSettingsPage = new (0, $dbc8f157e7b24b12$export$2edf430132ca35d0)(page);
10031
10067
  this.usersPage = new (0, $3ceab7c613cabfd6$export$107317390f5aa598)(page);