mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-9795] [E2E] Fixing tests from ACS-9795 (#4676)
* [ACS-9795] [E2E] Included tests for verification * [ACS-9795] [E2E] fixes for e2es pt.1 * [ACS-9795] e2e fixes pt.2 * [ACS-9795] e2e fixes pt.3 * [ACS-9795] deleted dist for testing * [ACS-9795] tests excluded - local ACS issues * [ACS-9795] sonar fixes * [ACS-9795] excluded XAT-17182 * [ACS-9795] updated exclude URLs * [ACS-9795] review fixes 1
This commit is contained in:
+2
-3
@@ -90,9 +90,8 @@ export class SearchFiltersProperties extends BaseComponent {
|
||||
|
||||
if (fileTypeInputText) {
|
||||
await this.fileTypeInput?.fill(fileTypeInputText);
|
||||
const targetDropdownOption = this.page.locator(`mat-option`, { hasText: fileTypeInputText });
|
||||
|
||||
await targetDropdownOption.click();
|
||||
await this.dropdownOptions.getByText(fileTypeInputText).waitFor();
|
||||
await this.dropdownOptions.getByText(fileTypeInputText).click();
|
||||
}
|
||||
|
||||
await page.searchFilters.menuCardApply.click();
|
||||
|
||||
@@ -63,6 +63,11 @@ export class ViewerComponent extends BaseComponent {
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
async isViewerOpened(): Promise<boolean> {
|
||||
await this.waitForViewerToOpen();
|
||||
return this.viewerLocator.isVisible();
|
||||
}
|
||||
|
||||
async waitForViewerToOpen(waitForViewerContent?: 'wait for viewer content'): Promise<void> {
|
||||
if (waitForViewerContent) {
|
||||
await this.waitForViewerLoaderToFinish();
|
||||
@@ -70,13 +75,13 @@ export class ViewerComponent extends BaseComponent {
|
||||
await this.viewerLocator.waitFor({ state: 'visible', timeout: timeouts.large });
|
||||
}
|
||||
|
||||
async isViewerOpened(): Promise<boolean> {
|
||||
await this.waitForViewerToOpen();
|
||||
return this.viewerLocator.isVisible();
|
||||
}
|
||||
|
||||
async waitForViewerLoaderToFinish(): Promise<void> {
|
||||
await this.viewerSpinner.waitFor({ state: 'hidden', timeout: timeouts.extraLarge });
|
||||
async waitForViewerLoaderToFinish(customTimeout?: number): Promise<void> {
|
||||
try {
|
||||
await this.viewerSpinner.waitFor({ state: 'hidden', timeout: customTimeout || timeouts.extraLarge });
|
||||
} catch (error) {
|
||||
this.logger.log('waitForViewerLoaderToFinish: Timeout reached while waiting for viewer loader to finish.');
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async checkViewerActivePage(pageNumber: number): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user