chore: Add mockserver for e2e testing (#19104)

This commit is contained in:
Mutasem Aldmour
2025-09-04 10:36:15 +02:00
committed by GitHub
parent e822cf58d0
commit ce820fc98c
12 changed files with 1027 additions and 410 deletions

View File

@@ -2,6 +2,7 @@ import type { Locator } from '@playwright/test';
import { nanoid } from 'nanoid';
import { BasePage } from './BasePage';
import { ROUTES } from '../config/constants';
import { resolveFromRoot } from '../utils/path-helper';
export class CanvasPage extends BasePage {
@@ -494,7 +495,7 @@ export class CanvasPage extends BasePage {
// Set fixed time using Playwright's clock API
await this.page.clock.setFixedTime(timestamp);
await this.page.goto('/workflow/new');
await this.openNewWorkflow();
}
async addNodeWithSubItem(searchText: string, subItemText: string): Promise<void> {
@@ -502,6 +503,10 @@ export class CanvasPage extends BasePage {
await this.nodeCreatorSubItem(subItemText).click();
}
async openNewWorkflow() {
await this.page.goto(ROUTES.NEW_WORKFLOW_PAGE);
}
getRagCalloutTip(): Locator {
return this.page.getByText('Tip: Get a feel for vector stores in n8n with our');
}