@digital-ai/devops-page-object-release 0.0.95 → 0.0.96

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
@@ -2759,6 +2759,24 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
2759
2759
  hasText: filename
2760
2760
  })).not.toBeVisible();
2761
2761
  }
2762
+ async expectSubscribeLinkIsPublic() {
2763
+ await (0, $hOLA6$expect)(this.page.getByRole("checkbox", {
2764
+ name: "Publish Link"
2765
+ })).toBeChecked();
2766
+ }
2767
+ async expectSubscribeLinkIsPrivate() {
2768
+ await (0, $hOLA6$expect)(this.page.getByRole("checkbox", {
2769
+ name: "Publish Link"
2770
+ })).not.toBeChecked();
2771
+ }
2772
+ async setSubscribeLink(isPublic) {
2773
+ const isChecked = await this.page.getByRole("checkbox", {
2774
+ name: "Publish Link"
2775
+ }).isChecked();
2776
+ if (isChecked !== isPublic) await this.page.getByRole("checkbox", {
2777
+ name: "Publish Link"
2778
+ }).click();
2779
+ }
2762
2780
  async downloadFile(filename) {
2763
2781
  // eslint-disable-next-line @typescript-eslint/no-empty-function
2764
2782
  const downloadPromise1 = this.page.waitForEvent("download");
@@ -2768,6 +2786,19 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
2768
2786
  await download.saveAs("./core/xlr-ui/build/playwright/" + download.suggestedFilename());
2769
2787
  (0, $hOLA6$expect)(download.suggestedFilename()).toBe(filename);
2770
2788
  }
2789
+ async verifyCalendarEventDownload(releaseName) {
2790
+ // Start listening for download event
2791
+ const downloadPromise1 = this.page.waitForEvent("download");
2792
+ const expectedFilename = `${releaseName}.ics`;
2793
+ // Trigger the download
2794
+ await this.page.getByRole("button", {
2795
+ name: "Download calendar event"
2796
+ }).click();
2797
+ // Wait for the download to complete
2798
+ const download = await downloadPromise1;
2799
+ // Validate the file name
2800
+ (0, $hOLA6$expect)(download.suggestedFilename()).toBe(expectedFilename);
2801
+ }
2771
2802
  async deleteAttachment(fileName) {
2772
2803
  await this.page.getByRole("row", {
2773
2804
  name: fileName