[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:
Katarzyna Kita
2024-04-24 15:49:00 +02:00
committed by GitHub
parent 27a14426bc
commit e670441499
7 changed files with 170 additions and 533 deletions

View File

@@ -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();
}
}

View File

@@ -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();
}
}