@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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.96
4
+
5
+ ### Patch Changes
6
+
7
+ - 192cd69: S-126989: Migrated to release-download-ics-scenario to playwright
8
+
3
9
  ## 0.0.95
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -3695,6 +3695,24 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
3695
3695
  hasText: filename
3696
3696
  })).not.toBeVisible();
3697
3697
  }
3698
+ async expectSubscribeLinkIsPublic() {
3699
+ await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("checkbox", {
3700
+ name: "Publish Link"
3701
+ })).toBeChecked();
3702
+ }
3703
+ async expectSubscribeLinkIsPrivate() {
3704
+ await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("checkbox", {
3705
+ name: "Publish Link"
3706
+ })).not.toBeChecked();
3707
+ }
3708
+ async setSubscribeLink(isPublic) {
3709
+ const isChecked = await this.page.getByRole("checkbox", {
3710
+ name: "Publish Link"
3711
+ }).isChecked();
3712
+ if (isChecked !== isPublic) await this.page.getByRole("checkbox", {
3713
+ name: "Publish Link"
3714
+ }).click();
3715
+ }
3698
3716
  async downloadFile(filename) {
3699
3717
  // eslint-disable-next-line @typescript-eslint/no-empty-function
3700
3718
  const downloadPromise1 = this.page.waitForEvent("download");
@@ -3704,6 +3722,19 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
3704
3722
  await download.saveAs("./core/xlr-ui/build/playwright/" + download.suggestedFilename());
3705
3723
  (0, $kKeXs$playwrighttest.expect)(download.suggestedFilename()).toBe(filename);
3706
3724
  }
3725
+ async verifyCalendarEventDownload(releaseName) {
3726
+ // Start listening for download event
3727
+ const downloadPromise1 = this.page.waitForEvent("download");
3728
+ const expectedFilename = `${releaseName}.ics`;
3729
+ // Trigger the download
3730
+ await this.page.getByRole("button", {
3731
+ name: "Download calendar event"
3732
+ }).click();
3733
+ // Wait for the download to complete
3734
+ const download = await downloadPromise1;
3735
+ // Validate the file name
3736
+ (0, $kKeXs$playwrighttest.expect)(download.suggestedFilename()).toBe(expectedFilename);
3737
+ }
3707
3738
  async deleteAttachment(fileName) {
3708
3739
  await this.page.getByRole("row", {
3709
3740
  name: fileName