@digital-ai/devops-page-object-release 0.0.0-snapshot-20251210041025 → 0.0.0-snapshot-20251210102728

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
@@ -5908,7 +5908,8 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5908
5908
  }).getByRole("checkbox")).toBeChecked();
5909
5909
  }
5910
5910
  async deleteUser(username) {
5911
- await this.page.getByTestId(`delete-btn-${username}`).click();
5911
+ await this.page.getByTestId(`user-actions-btn-${username}`).click();
5912
+ await this.page.locator(".icon-delete").click();
5912
5913
  await this.modal.delete();
5913
5914
  }
5914
5915
  async openRoles() {
@@ -5935,9 +5936,6 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5935
5936
  }).locator(`td`).filter({
5936
5937
  hasText: type
5937
5938
  }).count()).toBeGreaterThan(0);
5938
- if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5939
- hasText: user.name
5940
- }).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
5941
5939
  if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5942
5940
  hasText: user.name
5943
5941
  }).locator(`td`).filter({
@@ -5953,9 +5951,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5953
5951
  }).locator(`td`).filter({
5954
5952
  hasText: user.externalId
5955
5953
  }).count()).toBeGreaterThan(0);
5956
- (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5957
- hasText: user.name
5958
- }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
5954
+ (0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
5959
5955
  }
5960
5956
  }
5961
5957
  async expectNoUser(username) {
@@ -5964,9 +5960,8 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5964
5960
  }
5965
5961
  async updateUser(username) {
5966
5962
  await this.filterUser(username);
5967
- await this.page.getByRole("row", {
5968
- name: "" + username + ""
5969
- }).locator(".icon-edit").click();
5963
+ await this.page.getByTestId(`user-actions-btn-${username}`).click();
5964
+ await this.page.locator(".icon-edit").click();
5970
5965
  return this.modal;
5971
5966
  }
5972
5967
  async sortByColumn(columnName, columnIndex) {
@@ -6002,7 +5997,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
6002
5997
  return this;
6003
5998
  }
6004
5999
  async expectUserUnlockedToaster(user) {
6005
- await (0, $hOLA6$expect)(this.page.getByText(`User ${user} was unlocked and can now login in again`)).toBeVisible({
6000
+ await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
6006
6001
  timeout: 10000
6007
6002
  });
6008
6003
  }