@digital-ai/devops-page-object-release 0.0.97 → 0.0.98

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
@@ -5929,7 +5929,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5929
5929
  }).getByRole("checkbox")).toBeChecked();
5930
5930
  }
5931
5931
  async deleteUser(username) {
5932
- await this.page.getByTestId(`delete-btn-${username}`).click();
5932
+ await this.page.getByTestId(`user-actions-btn-${username}`).click();
5933
+ await (0, $hOLA6$expect)(this.page.locator(".icon-delete")).toBeVisible();
5934
+ await this.page.locator(".icon-delete").click();
5933
5935
  await this.modal.delete();
5934
5936
  }
5935
5937
  async openRoles() {
@@ -5974,9 +5976,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5974
5976
  }).locator(`td`).filter({
5975
5977
  hasText: user.externalId
5976
5978
  }).count()).toBeGreaterThan(0);
5977
- (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5978
- hasText: user.name
5979
- }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
5979
+ (0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
5980
5980
  }
5981
5981
  }
5982
5982
  async expectNoUser(username) {
@@ -5985,9 +5985,10 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5985
5985
  }
5986
5986
  async updateUser(username) {
5987
5987
  await this.filterUser(username);
5988
- await this.page.getByRole("row", {
5989
- name: "" + username + ""
5990
- }).locator(".icon-edit").click();
5988
+ await this.page.getByTestId(`user-actions-btn-${username}`).click();
5989
+ const editIcon = this.page.locator(".icon-edit");
5990
+ await (0, $hOLA6$expect)(editIcon).toBeVisible();
5991
+ await editIcon.click();
5991
5992
  return this.modal;
5992
5993
  }
5993
5994
  async sortByColumn(columnName, columnIndex) {