@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 +6 -0
- package/dist/main.js +16 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +16 -0
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -2906,6 +2906,22 @@ 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
|
+
await (0, $hOLA6$expect)(input).toBeVisible();
|
|
2914
|
+
await (0, $hOLA6$expect)(input).toHaveValue(flagComment);
|
|
2915
|
+
}
|
|
2916
|
+
async flag(flagName, flagComment) {
|
|
2917
|
+
const flagDropdown = this.page.locator("#release-properties .flags .dropdown-button");
|
|
2918
|
+
await flagDropdown.click();
|
|
2919
|
+
const flagPopover = this.page.locator(".flags .flag-picker-popover");
|
|
2920
|
+
const flagOption = flagPopover.locator(`div.${flagName}`);
|
|
2921
|
+
await flagOption.click();
|
|
2922
|
+
await this.page.getByPlaceholder("Set status text...").click();
|
|
2923
|
+
await this.page.getByPlaceholder("Set status text...").fill(flagComment);
|
|
2924
|
+
}
|
|
2909
2925
|
}
|
|
2910
2926
|
|
|
2911
2927
|
|