mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
committed by
GitHub
parent
fef55a3f73
commit
509ab55508
@@ -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');
|
||||
}
|
||||
}
|
||||
|
@@ -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}`);
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user