@digital-ai/devops-page-object-release 0.0.0-snapshot-20251023115157 → 0.0.0-snapshot-20251025024649

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,10 +1,16 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20251023115157
3
+ ## 0.0.0-snapshot-20251025024649
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 1538d7d: S-125018: Added folder-permissions-scenario page objects
7
+ - 867ee27: S-125939: Migrated Release flag scenario from cypress to playwright
8
+
9
+ ## 0.0.88
10
+
11
+ ### Patch Changes
12
+
13
+ - e96c33d: S-125018: Added folder-permissions-scenario page objects
8
14
 
9
15
  ## 0.0.87
10
16
 
package/dist/main.js CHANGED
@@ -3842,6 +3842,21 @@ 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
+ if (await input.isVisible()) await (0, $kKeXs$playwrighttest.expect)(input).toHaveValue(flagComment);
3850
+ }
3851
+ async flag(flagName, flagComment) {
3852
+ const flagDropdown = this.page.locator("#release-properties .flags .dropdown-button");
3853
+ await flagDropdown.click();
3854
+ const flagPopover = this.page.locator(".flags .flag-picker-popover");
3855
+ const flagOption = flagPopover.locator(`div.${flagName}`);
3856
+ await flagOption.click();
3857
+ await this.page.getByPlaceholder("Set status text...").click();
3858
+ await this.page.getByPlaceholder("Set status text...").fill(flagComment);
3859
+ }
3845
3860
  }
3846
3861
 
3847
3862
 
@@ -4334,6 +4349,10 @@ class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
4334
4349
  await this.openSubPage("Triggers");
4335
4350
  return new (0, $133601cfe0486710$export$fb932093f944abe4)(this.page);
4336
4351
  }
4352
+ async openEditor() {
4353
+ await this.openSubPage("Flow");
4354
+ return new $9b9a8c3da392d020$export$f43492e8ac3c566(this.page);
4355
+ }
4337
4356
  async abort(comment = "Abort for testing") {
4338
4357
  await this.page.getByTestId("abort-btn").waitFor();
4339
4358
  await this.page.getByTestId("abort-btn").click();