@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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.90
4
+
5
+ ### Patch Changes
6
+
7
+ - b1f79b2: S-125960: Migrated Release summary scenario from cypress to playwright
8
+
9
+ ## 0.0.89
10
+
11
+ ### Patch Changes
12
+
13
+ - ed632e1: S-125939: Migrated Release flag scenario from cypress to playwright
14
+
3
15
  ## 0.0.88
4
16
 
5
17
  ### Patch Changes
package/dist/main.js CHANGED
@@ -3842,6 +3842,22 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
3842
3842
  async expectStartFromReleaseURLToBe(parentReleaseURL) {
3843
3843
  (0, $kKeXs$playwrighttest.expect)(await this.page.locator(".started-from-release").getAttribute("href")).toContain(parentReleaseURL);
3844
3844
  }
3845
+ async expectFlaggedWith(flagName, flagComment) {
3846
+ const flagButton = this.page.locator(".flags .dropdown-button");
3847
+ await (0, $kKeXs$playwrighttest.expect)(flagButton).toHaveClass(new RegExp(`\\b${flagName}\\b`));
3848
+ const input = this.page.locator(".flags input");
3849
+ await (0, $kKeXs$playwrighttest.expect)(input).toBeVisible();
3850
+ await (0, $kKeXs$playwrighttest.expect)(input).toHaveValue(flagComment);
3851
+ }
3852
+ async flag(flagName, flagComment) {
3853
+ const flagDropdown = this.page.locator("#release-properties .flags .dropdown-button");
3854
+ await flagDropdown.click();
3855
+ const flagPopover = this.page.locator(".flags .flag-picker-popover");
3856
+ const flagOption = flagPopover.locator(`div.${flagName}`);
3857
+ await flagOption.click();
3858
+ await this.page.getByPlaceholder("Set status text...").click();
3859
+ await this.page.getByPlaceholder("Set status text...").fill(flagComment);
3860
+ }
3845
3861
  }
3846
3862
 
3847
3863
 
@@ -4315,6 +4331,19 @@ class $2c89ba54932fbba8$export$f8f26dd395d7e1bd extends (0, $f8721861c660dd88$ex
4315
4331
  }
4316
4332
 
4317
4333
 
4334
+
4335
+
4336
+ class $fd3e87c08fb5976e$export$46146ef3ab8c339b extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
4337
+ constructor(page){
4338
+ super(page);
4339
+ }
4340
+ // Validate that release status contains the given text
4341
+ async expectReleaseStatusToContain(status) {
4342
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release-status")).toContainText(status);
4343
+ }
4344
+ }
4345
+
4346
+
4318
4347
  class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
4319
4348
  defaultTimeout = 10000;
4320
4349
  constructor(page){
@@ -4322,6 +4351,7 @@ class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
4322
4351
  this.addPhaseBtn = this.page.getByTestId("add-phase-btn");
4323
4352
  this.createPage = new (0, $3d3f3946c54f5897$export$34addcca3f0ae43f)(page);
4324
4353
  this.ganttPage = new (0, $e8395395d01b66bb$export$5a82be0a2a261cc6)(page);
4354
+ this.summaryPage = new (0, $fd3e87c08fb5976e$export$46146ef3ab8c339b)(page);
4325
4355
  this.tableView = new (0, $c5c393ea4aecca6c$export$649fde34d823ece7)(page);
4326
4356
  this.taskDrawer = new (0, $6a21661eb4695574$export$e946776eae644790)(page);
4327
4357
  this.teamsPermissions = new (0, $d330a7d6f7926d53$export$3bc3e140e0dcb075)(page);
@@ -4334,6 +4364,10 @@ class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
4334
4364
  await this.openSubPage("Triggers");
4335
4365
  return new (0, $133601cfe0486710$export$fb932093f944abe4)(this.page);
4336
4366
  }
4367
+ async openSummary() {
4368
+ this.openSubPage("Dashboard");
4369
+ return new (0, $fd3e87c08fb5976e$export$46146ef3ab8c339b)(this.page);
4370
+ }
4337
4371
  async abort(comment = "Abort for testing") {
4338
4372
  await this.page.getByTestId("abort-btn").waitFor();
4339
4373
  await this.page.getByTestId("abort-btn").click();
@@ -10016,6 +10050,7 @@ class $267ea1f27d28a032$export$8da2fa93430be6ca extends (0, $f8721861c660dd88$ex
10016
10050
 
10017
10051
 
10018
10052
 
10053
+
10019
10054
  class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
10020
10055
  constructor(page){
10021
10056
  this.page = page;
@@ -10028,6 +10063,7 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
10028
10063
  this.header = new (0, $00fc48341ebf7de4$export$2fb4351c41ce6e7a)(page);
10029
10064
  this.managePluginsPage = new (0, $b4d98f757ef92467$export$7b434e00c788d0bf)(page);
10030
10065
  this.releasePage = new (0, $9b9a8c3da392d020$export$f43492e8ac3c566)(page);
10066
+ this.summaryPage = new (0, $fd3e87c08fb5976e$export$46146ef3ab8c339b)(page);
10031
10067
  this.settingsMenu = new (0, $7867194f18360347$export$1d7840d5cdc861d5)(page);
10032
10068
  this.systemSettingsPage = new (0, $dbc8f157e7b24b12$export$2edf430132ca35d0)(page);
10033
10069
  this.usersPage = new (0, $3ceab7c613cabfd6$export$107317390f5aa598)(page);