Add Playwright e2e test suite

This commit is contained in:
2026-03-06 21:08:20 -05:00
parent 8b1fff4130
commit 7dd403e814
8 changed files with 304 additions and 0 deletions

View File

@@ -8,12 +8,18 @@
"build": "bun --bun next build --turbopack",
"start": "bun --bun next start",
"lint": "bun --bun tsc --noEmit",
"e2e:prepare": "bun run scripts/e2e-prepare.ts",
"e2e:webserver": "bun run scripts/e2e-webserver.ts",
"workflow:setup": "workflow-postgres-setup",
"backfill:filing-metrics": "bun run scripts/backfill-filing-metrics.ts",
"backfill:filing-statements": "bun run scripts/backfill-filing-statements.ts",
"backfill:taxonomy-snapshots": "bun run scripts/backfill-taxonomy-snapshots.ts",
"db:generate": "bun x drizzle-kit generate",
"db:migrate": "bun x drizzle-kit migrate",
"test:e2e": "bun run scripts/e2e-run.ts",
"test:e2e:headed": "bun run scripts/e2e-run.ts --headed",
"test:e2e:install": "playwright install chromium",
"test:e2e:ui": "bun run scripts/e2e-run.ts --ui",
"test:e2e:workflow": "RUN_TASK_WORKFLOW_E2E=1 bun test lib/server/api/task-workflow-hybrid.e2e.test.ts"
},
"dependencies": {
@@ -38,6 +44,7 @@
"zhipu-ai-provider": "^0.2.2"
},
"devDependencies": {
"@playwright/test": "^1.56.1",
"@types/node": "^25.3.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",