[ACS-6954] Refactor Search Playwright tests - move search actions to searchOverlay component (#3703)

* Refactored search playwright tests moved search actions to search overlay component
This commit is contained in:
Katarzyna Kita
2024-03-12 12:55:02 +01:00
committed by GitHub
parent f63d5073f4
commit c572dde261
5 changed files with 52 additions and 82 deletions

View File

@@ -52,21 +52,21 @@ export class SearchPage extends BasePage {
await this.searchInput.searchButton.click();
switch (searchType) {
case 'files':
await this.searchInput.checkOnlyFiles();
await this.searchOverlay.checkOnlyFiles();
break;
case 'folders':
await this.searchInput.checkOnlyFolders();
await this.searchOverlay.checkOnlyFolders();
break;
case 'filesAndFolders':
await this.searchInput.checkFilesAndFolders();
await this.searchOverlay.checkFilesAndFolders();
break;
case 'libraries':
await this.searchInput.checkLibraries();
await this.searchOverlay.checkLibraries();
break;
default:
break;
}
await this.searchInput.searchFor(searchText);
await this.searchOverlay.searchFor(searchText);
await this.dataTable.progressBarWaitForReload();
}
}