@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 +6 -0
- package/dist/main.js +6 -4
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -4
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
}
|