[ACS-6235] Migrated E2Es in favorites.ts file to Playwright (#3539)

* [ACS-6235] migrated e2es to playwright

* [ACS-6235] migrated e2es to playwright

* [ACS-6235] addressed review comments
This commit is contained in:
SheenaMalhotra182
2023-11-28 15:10:14 +05:30
committed by GitHub
parent fef55a3f73
commit 509ab55508
7 changed files with 133 additions and 141 deletions

View File

@@ -162,4 +162,8 @@ export class PaginationComponent extends BaseComponent {
throw new Error(`Click nth menu item catch: ${e}`);
}
}
async closeMenu(): Promise<void> {
await this.page.keyboard.press('Escape');
}
}

View File

@@ -24,7 +24,7 @@
import { Page } from '@playwright/test';
import { BasePage } from './base.page';
import { DataTableComponent, MatMenuComponent, ViewerComponent, SidenavComponent } from '../components';
import { DataTableComponent, MatMenuComponent, ViewerComponent, SidenavComponent, PaginationComponent } from '../components';
import { AcaHeader } from '../components/aca-header.component';
import { AdfFolderDialogComponent, ViewerOverlayDialogComponent } from '../components/dialogs';
@@ -42,4 +42,9 @@ export class FavoritesPage extends BasePage {
public viewer = new ViewerComponent(this.page);
public viewerDialog = new ViewerOverlayDialogComponent(this.page);
public sidenav = new SidenavComponent(this.page);
public pagination = new PaginationComponent(this.page);
async waitForPageLoad() {
await this.page.waitForURL(`**/${FavoritesPage.pageUrl}`);
}
}

View File

@@ -32,7 +32,7 @@ export const timeouts = {
large: 10000,
extraLarge: 20 * 1000,
globalTest: 45 * 1000,
extendedTest: 120 * 1000,
extendedTest: 150 * 1000,
webServer: 240 * 1000,
globalSpec: 60 * 10 * 1000
};