@digital-ai/devops-page-object-release 0.0.0-snapshot-20251126094153 → 0.0.0-snapshot-20251126133346
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 +2 -2
- package/dist/main.js +4 -10
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -10
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -322,6 +322,10 @@ class $5359280e98d97ff9$export$a678525e79c4ccc4 extends (0, $b34a21212642e54d$ex
|
|
|
322
322
|
}).click();
|
|
323
323
|
return new (0, $43cbcdfccb6c2a76$export$f43492e8ac3c566)(this.page);
|
|
324
324
|
}
|
|
325
|
+
async expectReleaseFlagged(title, flag) {
|
|
326
|
+
const release = this.page.locator(`.release:has-text("${title}").flagged_${flag}`);
|
|
327
|
+
await (0, $hOLA6$expect)(release).toHaveCount(1);
|
|
328
|
+
}
|
|
325
329
|
async createNewRelease(releaseName, description) {
|
|
326
330
|
await this.releaseCreatePage.setName(releaseName);
|
|
327
331
|
await this.releaseCreatePage.setDescription(description);
|
|
@@ -2755,16 +2759,6 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
2755
2759
|
hasText: filename
|
|
2756
2760
|
})).not.toBeVisible();
|
|
2757
2761
|
}
|
|
2758
|
-
async expectSubscribeLinkIsPublic() {
|
|
2759
|
-
await (0, $hOLA6$expect)(this.page.locator("#releaseForm-calendarPublished")).toBeChecked();
|
|
2760
|
-
}
|
|
2761
|
-
async expectSubscribeLinkIsPrivate() {
|
|
2762
|
-
await (0, $hOLA6$expect)(this.page.locator("#releaseForm-calendarPublished")).not.toBeChecked();
|
|
2763
|
-
}
|
|
2764
|
-
async setSubscribeLink(isPublic) {
|
|
2765
|
-
const isChecked = await this.page.locator("#releaseForm-calendarPublished").isChecked();
|
|
2766
|
-
if (isChecked !== isPublic) await this.page.locator("#releaseForm-calendarPublished").click();
|
|
2767
|
-
}
|
|
2768
2762
|
async downloadFile(filename) {
|
|
2769
2763
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2770
2764
|
const downloadPromise1 = this.page.waitForEvent("download");
|