@digital-ai/devops-page-object-release 1.0.1 → 1.0.2

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
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 05e39e6: S-131806 : fix selectors for ci option for new grouped selection UI
8
+
3
9
  ## 1.0.1
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -2190,12 +2190,13 @@ class $8be2ce0eccbe6d27$export$64c93bc7fb9ca44e extends (0, $f8721861c660dd88$ex
2190
2190
  }
2191
2191
  async getAllOptionsFromCi(propertyName) {
2192
2192
  await this.railLocator.locator(`input[id="${propertyName}"]`).click();
2193
- return this.railLocator.locator(`.dot-popper ul li`).allInnerTexts();
2193
+ const texts = await this.railLocator.locator(`.dot-popper ul li[role="option"]`).allInnerTexts();
2194
+ return texts.map((text)=>text.split('\n')[0].trim());
2194
2195
  }
2195
2196
  async setValueFromCi(propertyName, value) {
2196
2197
  await this.railLocator.locator(`input[id="${propertyName}"]`).clear();
2197
2198
  await this.railLocator.locator(`input[id="${propertyName}"]`).click();
2198
- await this.railLocator.locator(`.dot-popper ul li`, {
2199
+ await this.railLocator.locator(`.dot-popper ul li[role="option"]`, {
2199
2200
  hasText: value
2200
2201
  }).click();
2201
2202
  }
@@ -2252,12 +2253,13 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
2252
2253
  }
2253
2254
  async getAllOptionsFromCi(propertyName) {
2254
2255
  await this.railLocator.locator(`input[id="${propertyName}"]`).click();
2255
- return this.railLocator.locator(`.dot-popper ul li`).allInnerTexts();
2256
+ const texts = await this.railLocator.locator(`.dot-popper ul li[role="option"]`).allInnerTexts();
2257
+ return texts.map((text)=>text.split('\n')[0].trim());
2256
2258
  }
2257
2259
  async setValueFromCi(propertyName, value) {
2258
2260
  await this.railLocator.locator(`input[id="${propertyName}"]`).clear();
2259
2261
  await this.railLocator.locator(`input[id="${propertyName}"]`).click();
2260
- await this.railLocator.locator(`.dot-popper ul li`, {
2262
+ await this.railLocator.locator(`.dot-popper ul li[role="option"]`, {
2261
2263
  hasText: value
2262
2264
  }).click();
2263
2265
  }