@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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.98
4
+
5
+ ### Patch Changes
6
+
7
+ - f76a633: S-127036: Update for Action button with options. Updated the action button implementation to use a dropdown menu pattern instead of direct action buttons.
8
+
3
9
  ## 0.0.97
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -6865,7 +6865,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6865
6865
  }).getByRole("checkbox")).toBeChecked();
6866
6866
  }
6867
6867
  async deleteUser(username) {
6868
- await this.page.getByTestId(`delete-btn-${username}`).click();
6868
+ await this.page.getByTestId(`user-actions-btn-${username}`).click();
6869
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".icon-delete")).toBeVisible();
6870
+ await this.page.locator(".icon-delete").click();
6869
6871
  await this.modal.delete();
6870
6872
  }
6871
6873
  async openRoles() {
@@ -6910,9 +6912,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6910
6912
  }).locator(`td`).filter({
6911
6913
  hasText: user.externalId
6912
6914
  }).count()).toBeGreaterThan(0);
6913
- (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6914
- hasText: user.name
6915
- }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
6915
+ (0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
6916
6916
  }
6917
6917
  }
6918
6918
  async expectNoUser(username) {
@@ -6921,9 +6921,10 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6921
6921
  }
6922
6922
  async updateUser(username) {
6923
6923
  await this.filterUser(username);
6924
- await this.page.getByRole("row", {
6925
- name: "" + username + ""
6926
- }).locator(".icon-edit").click();
6924
+ await this.page.getByTestId(`user-actions-btn-${username}`).click();
6925
+ const editIcon = this.page.locator(".icon-edit");
6926
+ await (0, $kKeXs$playwrighttest.expect)(editIcon).toBeVisible();
6927
+ await editIcon.click();
6927
6928
  return this.modal;
6928
6929
  }
6929
6930
  async sortByColumn(columnName, columnIndex) {