mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat: Add testcontainers and Playwright (no-changelog) (#16662)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
68
packages/testing/playwright/pages/n8nPage.ts
Normal file
68
packages/testing/playwright/pages/n8nPage.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
import type { Page } from '@playwright/test';
|
||||
|
||||
import { CanvasPage } from './CanvasPage';
|
||||
import { CredentialsPage } from './CredentialsPage';
|
||||
import { ExecutionsPage } from './ExecutionsPage';
|
||||
import { NodeDisplayViewPage } from './NodeDisplayViewPage';
|
||||
import { NotificationsPage } from './NotificationsPage';
|
||||
import { ProjectSettingsPage } from './ProjectSettingsPage';
|
||||
import { ProjectWorkflowsPage } from './ProjectWorkflowsPage';
|
||||
import { SidebarPage } from './SidebarPage';
|
||||
import { WorkflowsPage } from './WorkflowsPage';
|
||||
import { CanvasComposer } from '../composables/CanvasComposer';
|
||||
import { ProjectComposer } from '../composables/ProjectComposer';
|
||||
import { WorkflowComposer } from '../composables/WorkflowComposer';
|
||||
|
||||
export class n8nPage {
|
||||
readonly page: Page;
|
||||
|
||||
// Pages
|
||||
readonly canvas: CanvasPage;
|
||||
|
||||
readonly ndv: NodeDisplayViewPage;
|
||||
|
||||
readonly projectWorkflows: ProjectWorkflowsPage;
|
||||
|
||||
readonly projectSettings: ProjectSettingsPage;
|
||||
|
||||
readonly workflows: WorkflowsPage;
|
||||
|
||||
readonly notifications: NotificationsPage;
|
||||
|
||||
readonly credentials: CredentialsPage;
|
||||
|
||||
readonly executions: ExecutionsPage;
|
||||
|
||||
readonly sideBar: SidebarPage;
|
||||
|
||||
// Composables
|
||||
readonly workflowComposer: WorkflowComposer;
|
||||
|
||||
readonly projectComposer: ProjectComposer;
|
||||
|
||||
readonly canvasComposer: CanvasComposer;
|
||||
|
||||
constructor(page: Page) {
|
||||
this.page = page;
|
||||
|
||||
// Pages
|
||||
this.canvas = new CanvasPage(page);
|
||||
this.ndv = new NodeDisplayViewPage(page);
|
||||
this.projectWorkflows = new ProjectWorkflowsPage(page);
|
||||
this.projectSettings = new ProjectSettingsPage(page);
|
||||
this.workflows = new WorkflowsPage(page);
|
||||
this.notifications = new NotificationsPage(page);
|
||||
this.credentials = new CredentialsPage(page);
|
||||
this.executions = new ExecutionsPage(page);
|
||||
this.sideBar = new SidebarPage(page);
|
||||
|
||||
// Composables
|
||||
this.workflowComposer = new WorkflowComposer(this);
|
||||
this.projectComposer = new ProjectComposer(this);
|
||||
this.canvasComposer = new CanvasComposer(this);
|
||||
}
|
||||
|
||||
async goHome() {
|
||||
await this.page.goto('/');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user