@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/CHANGELOG.md
CHANGED
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
|
|