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

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,17 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.100
4
+
5
+ ### Patch Changes
6
+
7
+ - 6235774: Fixed global variables values entry related issues
8
+
9
+ ## 0.0.99
10
+
11
+ ### Patch Changes
12
+
13
+ - 70bd85d: S-127475 : Added SPEL related page objects
14
+
3
15
  ## 0.0.98
4
16
 
5
17
  ### 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();
@@ -6212,7 +6224,7 @@ class $506d511737b3ea46$export$74ca1eaaa9a0054 extends (0, $f8721861c660dd88$exp
6212
6224
  }
6213
6225
  async addVariableText(valuename) {
6214
6226
  await this.page.getByRole("combobox").selectOption("StringVariable");
6215
- await this.page.locator(".variable-value").type(valuename);
6227
+ await this.page.locator(".variable-value input").fill(valuename);
6216
6228
  await this.submitTheVariable();
6217
6229
  }
6218
6230
  async addVariableListbox(possiblevalue) {
@@ -6224,7 +6236,7 @@ class $506d511737b3ea46$export$74ca1eaaa9a0054 extends (0, $f8721861c660dd88$exp
6224
6236
  }
6225
6237
  async addVariablePassword(possiblevalue) {
6226
6238
  await this.page.getByRole("combobox").selectOption("PasswordStringVariable");
6227
- await this.page.locator('input[type="password"]').type(possiblevalue);
6239
+ await this.page.locator('input[type="password"]').fill(possiblevalue);
6228
6240
  await this.submitTheVariable();
6229
6241
  }
6230
6242
  async addVariableCheckbox() {
@@ -6289,7 +6301,7 @@ class $506d511737b3ea46$export$74ca1eaaa9a0054 extends (0, $f8721861c660dd88$exp
6289
6301
  await this.page.getByRole("button", {
6290
6302
  name: "New global variable"
6291
6303
  }).click();
6292
- await this.page.locator(`div.input-group > input`).type(variableName);
6304
+ await this.page.locator(`div.input-group > input`).fill(variableName);
6293
6305
  await this.addVariablelabel.fill(labelname);
6294
6306
  await this.page.locator(".variable-description input").fill(description);
6295
6307
  }
@@ -10191,6 +10203,11 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
10191
10203
  exact: true
10192
10204
  }).click();
10193
10205
  }
10206
+ async gotoHomePageFromRelease() {
10207
+ await this.page.getByRole("link", {
10208
+ name: "Home"
10209
+ }).click();
10210
+ }
10194
10211
  async gotoFolderPage() {
10195
10212
  await this.page.locator("ul.side-nav li").getByLabel("Folders", {
10196
10213
  exact: true