@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/dist/module.js
CHANGED
|
@@ -1256,12 +1256,13 @@ class $e44e9af564fb00f7$export$64c93bc7fb9ca44e extends (0, $9626bc9256ce31f7$ex
|
|
|
1256
1256
|
}
|
|
1257
1257
|
async getAllOptionsFromCi(propertyName) {
|
|
1258
1258
|
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
1259
|
-
|
|
1259
|
+
const texts = await this.railLocator.locator(`.dot-popper ul li[role="option"]`).allInnerTexts();
|
|
1260
|
+
return texts.map((text)=>text.split('\n')[0].trim());
|
|
1260
1261
|
}
|
|
1261
1262
|
async setValueFromCi(propertyName, value) {
|
|
1262
1263
|
await this.railLocator.locator(`input[id="${propertyName}"]`).clear();
|
|
1263
1264
|
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
1264
|
-
await this.railLocator.locator(`.dot-popper ul li`, {
|
|
1265
|
+
await this.railLocator.locator(`.dot-popper ul li[role="option"]`, {
|
|
1265
1266
|
hasText: value
|
|
1266
1267
|
}).click();
|
|
1267
1268
|
}
|
|
@@ -1318,12 +1319,13 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1318
1319
|
}
|
|
1319
1320
|
async getAllOptionsFromCi(propertyName) {
|
|
1320
1321
|
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
1321
|
-
|
|
1322
|
+
const texts = await this.railLocator.locator(`.dot-popper ul li[role="option"]`).allInnerTexts();
|
|
1323
|
+
return texts.map((text)=>text.split('\n')[0].trim());
|
|
1322
1324
|
}
|
|
1323
1325
|
async setValueFromCi(propertyName, value) {
|
|
1324
1326
|
await this.railLocator.locator(`input[id="${propertyName}"]`).clear();
|
|
1325
1327
|
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
1326
|
-
await this.railLocator.locator(`.dot-popper ul li`, {
|
|
1328
|
+
await this.railLocator.locator(`.dot-popper ul li[role="option"]`, {
|
|
1327
1329
|
hasText: value
|
|
1328
1330
|
}).click();
|
|
1329
1331
|
}
|