mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
test: Add core entry points to allow easier test setup (#18597)
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user