@alfresco/aca-playwright-shared 7.2.0-18778029855 → 7.2.0-18833161813
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.
|
@@ -3297,10 +3297,13 @@ class SearchFiltersLocation extends BaseComponent {
|
|
|
3297
3297
|
super(page, SearchFiltersLocation.rootElement);
|
|
3298
3298
|
}
|
|
3299
3299
|
addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
|
3300
|
+
searchOption(value) {
|
|
3301
|
+
return this.page.locator(`[data-automation-id="option-${value}"]`);
|
|
3302
|
+
}
|
|
3300
3303
|
async filterByLocation(page, location) {
|
|
3301
3304
|
await page.searchFilters.locationFilter.click();
|
|
3302
3305
|
await page.searchFiltersLocation.addOptionInput.fill(location);
|
|
3303
|
-
await page.
|
|
3306
|
+
await page.searchFiltersLocation.searchOption(location).click();
|
|
3304
3307
|
await page.searchFilters.menuCardApply.click();
|
|
3305
3308
|
await page.dataTable.progressBarWaitForReload();
|
|
3306
3309
|
}
|