@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/dist/module.js CHANGED
@@ -1129,9 +1129,6 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
1129
1129
  this.preconditionToggle = page.getByLabel("Enable precondition");
1130
1130
  this.textEditor = page.locator("textarea");
1131
1131
  this.saveButton = page.getByTestId("save-btn");
1132
- this.selectEL = page.getByRole("textbox", {
1133
- name: "Precondition type"
1134
- }).getByLabel("Precondition type");
1135
1132
  }
1136
1133
  async enablePrecondition() {
1137
1134
  (0, $hOLA6$expect)(await this.preconditionToggle.isChecked()).toBe(false);
@@ -1147,15 +1144,6 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
1147
1144
  await this.saveButton.dblclick();
1148
1145
  await this.page.waitForTimeout(1000);
1149
1146
  }
1150
- async setPreconditionToEL(script) {
1151
- await this.enablePrecondition();
1152
- await this.selectEL.click();
1153
- await this.selectEL.selectOption("EL");
1154
- await this.page.locator(".ace_content").click();
1155
- await this.textEditor.fill(script);
1156
- await this.saveButton.dblclick();
1157
- await this.page.waitForTimeout(1000);
1158
- }
1159
1147
  async expectPreconditionEditable(editable) {
1160
1148
  if (editable) await (0, $hOLA6$expect)(this.textEditor).toBeEditable();
1161
1149
  else await (0, $hOLA6$expect)(this.textEditor).not.toBeEditable();
@@ -5941,7 +5929,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5941
5929
  }).getByRole("checkbox")).toBeChecked();
5942
5930
  }
5943
5931
  async deleteUser(username) {
5944
- 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();
5945
5935
  await this.modal.delete();
5946
5936
  }
5947
5937
  async openRoles() {
@@ -5986,9 +5976,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5986
5976
  }).locator(`td`).filter({
5987
5977
  hasText: user.externalId
5988
5978
  }).count()).toBeGreaterThan(0);
5989
- (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5990
- hasText: user.name
5991
- }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
5979
+ (0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
5992
5980
  }
5993
5981
  }
5994
5982
  async expectNoUser(username) {
@@ -5997,9 +5985,10 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5997
5985
  }
5998
5986
  async updateUser(username) {
5999
5987
  await this.filterUser(username);
6000
- await this.page.getByRole("row", {
6001
- name: "" + username + ""
6002
- }).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();
6003
5992
  return this.modal;
6004
5993
  }
6005
5994
  async sortByColumn(columnName, columnIndex) {