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

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,11 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.89
4
+
5
+ ### Patch Changes
6
+
7
+ - ed632e1: S-125939: Migrated Release flag scenario from cypress to playwright
8
+
3
9
  ## 0.0.88
4
10
 
5
11
  ### 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