mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
ACS-7335 Migrated e2e search filters - location (#3793)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
import { BaseComponent } from '../../base.component';
|
||||
import { Page } from '@playwright/test';
|
||||
import { SearchPage } from '@alfresco/playwright-shared';
|
||||
|
||||
export class SearchFiltersLocation extends BaseComponent {
|
||||
private static rootElement = '.adf-search-filter-menu-card';
|
||||
@@ -33,4 +34,13 @@ export class SearchFiltersLocation extends BaseComponent {
|
||||
}
|
||||
|
||||
public addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
||||
public applyButton = this.page.locator('#apply-filter-button');
|
||||
|
||||
async filterByLocation(page: SearchPage, location: string): Promise<void> {
|
||||
await page.searchFilters.locationFilter.click();
|
||||
await page.searchFiltersLocation.addOptionInput.fill(location);
|
||||
await page.page.keyboard.press('Enter');
|
||||
await page.searchFiltersLocation.applyButton.click();
|
||||
await page.dataTable.progressBarWaitForReload();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user