mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
ACS-6796 Search results files&folders tests migration to Playwright (#3691)
* Migrated tests for Search - files & folders
This commit is contained in:
@@ -29,6 +29,7 @@ import { timeouts } from '../../utils';
|
||||
export abstract class BaseComponent extends PlaywrightBase {
|
||||
private readonly rootElement: string;
|
||||
private overlayElement = this.page.locator('.cdk-overlay-backdrop-showing');
|
||||
private progressBar = this.page.locator('mat-progress-bar');
|
||||
|
||||
protected constructor(page: Page, rootElement: string) {
|
||||
super(page);
|
||||
@@ -62,4 +63,13 @@ export abstract class BaseComponent extends PlaywrightBase {
|
||||
this.logger.info('Spinner was not present');
|
||||
}
|
||||
}
|
||||
|
||||
async progressBarWaitForReload(): Promise<void> {
|
||||
try {
|
||||
await this.progressBar.waitFor({ state: 'visible', timeout: timeouts.medium });
|
||||
await this.progressBar.waitFor({ state: 'hidden', timeout: timeouts.normal });
|
||||
} catch (e) {
|
||||
this.logger.info('Progress bar was not present');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user