@digital-ai/devops-page-object-release 0.0.98 → 0.0.99

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.99
4
+
5
+ ### Patch Changes
6
+
7
+ - 70bd85d: S-127475 : Added SPEL related page objects
8
+
3
9
  ## 0.0.98
4
10
 
5
11
  ### Patch Changes
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();