@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/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20251212130202
3
+ ## 0.0.0-snapshot-20251215064123
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - ec1a601: S-126029: Added new column details for testing account lock
7
+ - c220e7e: S-127475 : Added SPEL related page objects
8
8
 
9
9
  ## 0.0.97
10
10
 
package/dist/main.js CHANGED
@@ -2065,6 +2065,9 @@ 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");
2068
2071
  }
2069
2072
  async enablePrecondition() {
2070
2073
  (0, $kKeXs$playwrighttest.expect)(await this.preconditionToggle.isChecked()).toBe(false);
@@ -2080,6 +2083,15 @@ class $9c0b0c2caed50730$export$d4865631ba74f3e2 extends (0, $f8721861c660dd88$ex
2080
2083
  await this.saveButton.dblclick();
2081
2084
  await this.page.waitForTimeout(1000);
2082
2085
  }
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
+ }
2083
2095
  async expectPreconditionEditable(editable) {
2084
2096
  if (editable) await (0, $kKeXs$playwrighttest.expect)(this.textEditor).toBeEditable();
2085
2097
  else await (0, $kKeXs$playwrighttest.expect)(this.textEditor).not.toBeEditable();
@@ -6865,8 +6877,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6865
6877
  }).getByRole("checkbox")).toBeChecked();
6866
6878
  }
6867
6879
  async deleteUser(username) {
6868
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
6869
- await this.page.locator(".icon-delete").click();
6880
+ await this.page.getByTestId(`delete-btn-${username}`).click();
6870
6881
  await this.modal.delete();
6871
6882
  }
6872
6883
  async openRoles() {
@@ -6911,7 +6922,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6911
6922
  }).locator(`td`).filter({
6912
6923
  hasText: user.externalId
6913
6924
  }).count()).toBeGreaterThan(0);
6914
- (0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).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
6928
  }
6916
6929
  }
6917
6930
  async expectNoUser(username) {
@@ -6920,8 +6933,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6920
6933
  }
6921
6934
  async updateUser(username) {
6922
6935
  await this.filterUser(username);
6923
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
6924
- await this.page.locator(".icon-edit").click();
6936
+ await this.page.getByRole("row", {
6937
+ name: "" + username + ""
6938
+ }).locator(".icon-edit").click();
6925
6939
  return this.modal;
6926
6940
  }
6927
6941
  async sortByColumn(columnName, columnIndex) {