@digital-ai/devops-page-object-release 0.0.0-snapshot-20251126133346 → 0.0.0-snapshot-20251126150532

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/dist/module.js CHANGED
@@ -322,10 +322,6 @@ 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
- }
329
325
  async createNewRelease(releaseName, description) {
330
326
  await this.releaseCreatePage.setName(releaseName);
331
327
  await this.releaseCreatePage.setDescription(description);
@@ -2759,6 +2755,16 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
2759
2755
  hasText: filename
2760
2756
  })).not.toBeVisible();
2761
2757
  }
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
+ }
2762
2768
  async downloadFile(filename) {
2763
2769
  // eslint-disable-next-line @typescript-eslint/no-empty-function
2764
2770
  const downloadPromise1 = this.page.waitForEvent("download");