mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user