@digital-ai/devops-page-object-release 0.0.0-snapshot-20251205202250 → 0.0.0-snapshot-20251209071345

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
@@ -2755,6 +2755,24 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
2755
2755
  hasText: filename
2756
2756
  })).not.toBeVisible();
2757
2757
  }
2758
+ async expectSubscribeLinkIsPublic() {
2759
+ await (0, $hOLA6$expect)(this.page.getByRole("checkbox", {
2760
+ name: "Publish Link"
2761
+ })).toBeChecked();
2762
+ }
2763
+ async expectSubscribeLinkIsPrivate() {
2764
+ await (0, $hOLA6$expect)(this.page.getByRole("checkbox", {
2765
+ name: "Publish Link"
2766
+ })).not.toBeChecked();
2767
+ }
2768
+ async setSubscribeLink(isPublic) {
2769
+ const isChecked = await this.page.getByRole("checkbox", {
2770
+ name: "Publish Link"
2771
+ }).isChecked();
2772
+ if (isChecked !== isPublic) await this.page.getByRole("checkbox", {
2773
+ name: "Publish Link"
2774
+ }).click();
2775
+ }
2758
2776
  async downloadFile(filename) {
2759
2777
  // eslint-disable-next-line @typescript-eslint/no-empty-function
2760
2778
  const downloadPromise1 = this.page.waitForEvent("download");
@@ -2764,6 +2782,19 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
2764
2782
  await download.saveAs("./core/xlr-ui/build/playwright/" + download.suggestedFilename());
2765
2783
  (0, $hOLA6$expect)(download.suggestedFilename()).toBe(filename);
2766
2784
  }
2785
+ async verifyCalendarEventDownload(releaseName) {
2786
+ // Start listening for download event
2787
+ const downloadPromise1 = this.page.waitForEvent("download");
2788
+ const expectedFilename = `${releaseName}.ics`;
2789
+ // Trigger the download
2790
+ await this.page.getByRole("button", {
2791
+ name: "Download calendar event"
2792
+ }).click();
2793
+ // Wait for the download to complete
2794
+ const download = await downloadPromise1;
2795
+ // Validate the file name
2796
+ (0, $hOLA6$expect)(download.suggestedFilename()).toBe(expectedFilename);
2797
+ }
2767
2798
  async deleteAttachment(fileName) {
2768
2799
  await this.page.getByRole("row", {
2769
2800
  name: fileName
@@ -5873,8 +5904,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5873
5904
  }).getByRole("checkbox")).toBeChecked();
5874
5905
  }
5875
5906
  async deleteUser(username) {
5876
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
5877
- await this.page.locator(".icon-delete").click();
5907
+ await this.page.getByTestId(`delete-btn-${username}`).click();
5878
5908
  await this.modal.delete();
5879
5909
  }
5880
5910
  async openRoles() {
@@ -5901,9 +5931,6 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5901
5931
  }).locator(`td`).filter({
5902
5932
  hasText: type
5903
5933
  }).count()).toBeGreaterThan(0);
5904
- if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5905
- hasText: user.name
5906
- }).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
5907
5934
  if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5908
5935
  hasText: user.name
5909
5936
  }).locator(`td`).filter({
@@ -5919,7 +5946,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5919
5946
  }).locator(`td`).filter({
5920
5947
  hasText: user.externalId
5921
5948
  }).count()).toBeGreaterThan(0);
5922
- (0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
5949
+ (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5950
+ hasText: user.name
5951
+ }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
5923
5952
  }
5924
5953
  }
5925
5954
  async expectNoUser(username) {
@@ -5928,8 +5957,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5928
5957
  }
5929
5958
  async updateUser(username) {
5930
5959
  await this.filterUser(username);
5931
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
5932
- await this.page.locator(".icon-edit").click();
5960
+ await this.page.getByRole("row", {
5961
+ name: "" + username + ""
5962
+ }).locator(".icon-edit").click();
5933
5963
  return this.modal;
5934
5964
  }
5935
5965
  async sortByColumn(columnName, columnIndex) {
@@ -5964,24 +5994,6 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5964
5994
  })).toHaveCount(0);
5965
5995
  return this;
5966
5996
  }
5967
- async expectUserUnlockedToaster(user) {
5968
- await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
5969
- timeout: 10000
5970
- });
5971
- }
5972
- async unlockUser(user) {
5973
- await this.page.getByTestId(`unlock-btn-${user}`).click();
5974
- }
5975
- async expectWarningVisibility(warningRegex, shouldBeVisible) {
5976
- const locator = this.page.getByText(warningRegex);
5977
- if (shouldBeVisible) await (0, $hOLA6$expect)(locator).toHaveCount(1);
5978
- else await (0, $hOLA6$expect)(locator).toHaveCount(0);
5979
- }
5980
- async editUserClickCancelButton() {
5981
- await this.page.getByRole("button", {
5982
- name: "Cancel"
5983
- }).click();
5984
- }
5985
5997
  }
5986
5998
 
5987
5999