test: Add core entry points to allow easier test setup (#18597)

This commit is contained in:
shortstacked
2025-08-20 16:17:57 +01:00
committed by GitHub
parent cf76165457
commit 413b14b286
15 changed files with 311 additions and 197 deletions

View File

@@ -61,7 +61,6 @@ export const test = base.extend<TestFixtures, WorkerFixtures>({
const envBaseURL = process.env.N8N_BASE_URL;
if (envBaseURL) {
console.log(`Using external N8N_BASE_URL: ${envBaseURL}`);
await use(null as unknown as N8NStack);
return;
}
@@ -141,8 +140,8 @@ export const test = base.extend<TestFixtures, WorkerFixtures>({
await page.close();
},
n8n: async ({ page }, use) => {
const n8nInstance = new n8nPage(page);
n8n: async ({ page, api }, use) => {
const n8nInstance = new n8nPage(page, api);
await use(n8nInstance);
},