mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-7336] Added Playwright e2e Search - Tags & Deleted Protractor Search tests (#3812)
* ACS-7336 [Added] playwright e2e Search - Tags [Deleted] Protractor Search tests
This commit is contained in:
@@ -34,13 +34,12 @@ 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.searchFilters.menuCardApply.click();
|
||||
await page.dataTable.progressBarWaitForReload();
|
||||
}
|
||||
}
|
||||
|
@@ -22,6 +22,7 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { SearchPage } from '@alfresco/playwright-shared';
|
||||
import { BaseComponent } from '../../base.component';
|
||||
import { Page } from '@playwright/test';
|
||||
|
||||
@@ -33,4 +34,12 @@ export class SearchFiltersTags extends BaseComponent {
|
||||
}
|
||||
|
||||
public addOptionInput = this.getChild(`[data-automation-id$='adf-search-chip-autocomplete-input']`);
|
||||
|
||||
async filterByTag(page: SearchPage, tag: string): Promise<void> {
|
||||
await page.searchFilters.tagsFilter.click();
|
||||
await page.searchFiltersTags.addOptionInput.fill(tag);
|
||||
await page.page.keyboard.press('Enter');
|
||||
await page.searchFilters.menuCardApply.click();
|
||||
await page.dataTable.progressBarWaitForReload();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user