@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 +8 -2
- package/dist/main.js +19 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +19 -0
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -2906,6 +2906,21 @@ 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
|
+
if (await input.isVisible()) await (0, $hOLA6$expect)(input).toHaveValue(flagComment);
|
|
2914
|
+
}
|
|
2915
|
+
async flag(flagName, flagComment) {
|
|
2916
|
+
const flagDropdown = this.page.locator("#release-properties .flags .dropdown-button");
|
|
2917
|
+
await flagDropdown.click();
|
|
2918
|
+
const flagPopover = this.page.locator(".flags .flag-picker-popover");
|
|
2919
|
+
const flagOption = flagPopover.locator(`div.${flagName}`);
|
|
2920
|
+
await flagOption.click();
|
|
2921
|
+
await this.page.getByPlaceholder("Set status text...").click();
|
|
2922
|
+
await this.page.getByPlaceholder("Set status text...").fill(flagComment);
|
|
2923
|
+
}
|
|
2909
2924
|
}
|
|
2910
2925
|
|
|
2911
2926
|
|
|
@@ -3398,6 +3413,10 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
3398
3413
|
await this.openSubPage("Triggers");
|
|
3399
3414
|
return new (0, $862f65268e488e83$export$fb932093f944abe4)(this.page);
|
|
3400
3415
|
}
|
|
3416
|
+
async openEditor() {
|
|
3417
|
+
await this.openSubPage("Flow");
|
|
3418
|
+
return new $43cbcdfccb6c2a76$export$f43492e8ac3c566(this.page);
|
|
3419
|
+
}
|
|
3401
3420
|
async abort(comment = "Abort for testing") {
|
|
3402
3421
|
await this.page.getByTestId("abort-btn").waitFor();
|
|
3403
3422
|
await this.page.getByTestId("abort-btn").click();
|