mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
Merge pull request #1509 from johndoe6345789/claude/fix-e2e-seeding-MsEt5
Fix E2E seeding 404 by using correct basePath for workflowui API route
This commit is contained in:
@@ -35,9 +35,10 @@ async function globalSetup() {
|
||||
await new Promise(resolve => setTimeout(resolve, 2000))
|
||||
|
||||
// ── 3. Seed database ────────────────────────────────────────────────────
|
||||
// workflowui uses basePath: '/workflowui', so the setup route is at /workflowui/api/setup
|
||||
const setupUrl = process.env.PLAYWRIGHT_BASE_URL
|
||||
? new URL('/api/setup', process.env.PLAYWRIGHT_BASE_URL.replace(/\/workflowui\/?$/, '')).href
|
||||
: 'http://localhost:3000/api/setup'
|
||||
? new URL('/workflowui/api/setup', process.env.PLAYWRIGHT_BASE_URL.replace(/\/workflowui\/?$/, '')).href
|
||||
: 'http://localhost:3000/workflowui/api/setup'
|
||||
|
||||
try {
|
||||
const response = await fetch(setupUrl, { method: 'POST' })
|
||||
|
||||
Reference in New Issue
Block a user