@digital-ai/devops-page-object-release 0.0.0-snapshot-20251215064123 → 0.0.0-snapshot-20251216064142

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,10 +1,10 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20251215064123
3
+ ## 0.0.0-snapshot-20251216064142
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - c220e7e: S-127475 : Added SPEL related page objects
7
+ - ec1a601: 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
8
 
9
9
  ## 0.0.97
10
10
 
package/dist/main.js CHANGED
@@ -2065,9 +2065,6 @@ class $9c0b0c2caed50730$export$d4865631ba74f3e2 extends (0, $f8721861c660dd88$ex
2065
2065
  this.preconditionToggle = page.getByLabel("Enable precondition");
2066
2066
  this.textEditor = page.locator("textarea");
2067
2067
  this.saveButton = page.getByTestId("save-btn");
2068
- this.selectEL = page.getByRole("textbox", {
2069
- name: "Precondition type"
2070
- }).getByLabel("Precondition type");
2071
2068
  }
2072
2069
  async enablePrecondition() {
2073
2070
  (0, $kKeXs$playwrighttest.expect)(await this.preconditionToggle.isChecked()).toBe(false);
@@ -2083,15 +2080,6 @@ class $9c0b0c2caed50730$export$d4865631ba74f3e2 extends (0, $f8721861c660dd88$ex
2083
2080
  await this.saveButton.dblclick();
2084
2081
  await this.page.waitForTimeout(1000);
2085
2082
  }
2086
- async setPreconditionToEL(script) {
2087
- await this.enablePrecondition();
2088
- await this.selectEL.click();
2089
- await this.selectEL.selectOption("EL");
2090
- await this.page.locator(".ace_content").click();
2091
- await this.textEditor.fill(script);
2092
- await this.saveButton.dblclick();
2093
- await this.page.waitForTimeout(1000);
2094
- }
2095
2083
  async expectPreconditionEditable(editable) {
2096
2084
  if (editable) await (0, $kKeXs$playwrighttest.expect)(this.textEditor).toBeEditable();
2097
2085
  else await (0, $kKeXs$playwrighttest.expect)(this.textEditor).not.toBeEditable();
@@ -6877,7 +6865,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6877
6865
  }).getByRole("checkbox")).toBeChecked();
6878
6866
  }
6879
6867
  async deleteUser(username) {
6880
- 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();
6881
6871
  await this.modal.delete();
6882
6872
  }
6883
6873
  async openRoles() {
@@ -6922,9 +6912,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6922
6912
  }).locator(`td`).filter({
6923
6913
  hasText: user.externalId
6924
6914
  }).count()).toBeGreaterThan(0);
6925
- (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6926
- hasText: user.name
6927
- }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
6915
+ (0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
6928
6916
  }
6929
6917
  }
6930
6918
  async expectNoUser(username) {
@@ -6933,9 +6921,10 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6933
6921
  }
6934
6922
  async updateUser(username) {
6935
6923
  await this.filterUser(username);
6936
- await this.page.getByRole("row", {
6937
- name: "" + username + ""
6938
- }).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();
6939
6928
  return this.modal;
6940
6929
  }
6941
6930
  async sortByColumn(columnName, columnIndex) {