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

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,6 +1129,9 @@ 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");
1132
1135
  }
1133
1136
  async enablePrecondition() {
1134
1137
  (0, $hOLA6$expect)(await this.preconditionToggle.isChecked()).toBe(false);
@@ -1144,6 +1147,15 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
1144
1147
  await this.saveButton.dblclick();
1145
1148
  await this.page.waitForTimeout(1000);
1146
1149
  }
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
+ }
1147
1159
  async expectPreconditionEditable(editable) {
1148
1160
  if (editable) await (0, $hOLA6$expect)(this.textEditor).toBeEditable();
1149
1161
  else await (0, $hOLA6$expect)(this.textEditor).not.toBeEditable();
@@ -5929,8 +5941,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5929
5941
  }).getByRole("checkbox")).toBeChecked();
5930
5942
  }
5931
5943
  async deleteUser(username) {
5932
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
5933
- await this.page.locator(".icon-delete").click();
5944
+ await this.page.getByTestId(`delete-btn-${username}`).click();
5934
5945
  await this.modal.delete();
5935
5946
  }
5936
5947
  async openRoles() {
@@ -5975,7 +5986,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5975
5986
  }).locator(`td`).filter({
5976
5987
  hasText: user.externalId
5977
5988
  }).count()).toBeGreaterThan(0);
5978
- (0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).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
5992
  }
5980
5993
  }
5981
5994
  async expectNoUser(username) {
@@ -5984,8 +5997,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5984
5997
  }
5985
5998
  async updateUser(username) {
5986
5999
  await this.filterUser(username);
5987
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
5988
- await this.page.locator(".icon-edit").click();
6000
+ await this.page.getByRole("row", {
6001
+ name: "" + username + ""
6002
+ }).locator(".icon-edit").click();
5989
6003
  return this.modal;
5990
6004
  }
5991
6005
  async sortByColumn(columnName, columnIndex) {