test(web): Playwright full-route smoke as deno task test:web:smoke
Logs in, opens every console route (detail routes resolved from list endpoints), fails on console errors, uncaught exceptions or 4xx/5xx API responses, and screenshots each page. Uses playwright-core with the local Chromium; documented in README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
1023642ef9
commit
269a2269a1
4 files changed
+190
No files matched your search
@@ -37,6 +37,7 @@
|
||||
"pg": "npm:[email protected]",
|
||||
"pino": "npm:[email protected]",
|
||||
"pino-pretty": "npm:[email protected]",
|
||||
"playwright-core": "npm:[email protected]",
|
||||
"postgres": "npm:[email protected]",
|
||||
"typebox": "npm:[email protected]",
|
||||
"typescript": "npm:[email protected]",
|
||||
@@ -71,6 +72,10 @@
|
||||
"lint": "deno run -A npm:@biomejs/biome check .",
|
||||
"fmt": "deno run -A npm:@biomejs/biome check --write .",
|
||||
"test": "deno task --members -j 1 test",
|
||||
"test:web:smoke": {
|
||||
"description": "前端全页面冒烟(Playwright):需要已启动的后端 + web 与已初始化的管理员,见 README",
|
||||
"command": "deno run -A apps/web/scripts/smoke.mjs"
|
||||
},
|
||||
"check:tokens": "cd apps/web && deno task check:tokens",
|
||||
"build": "cd apps/web && deno task build && cd ../server && deno task compile",
|
||||
"ci": "deno task typecheck && deno task lint && deno task test && deno task check:tokens && deno task build",
|
||||
|
||||
Reference in new issue
Block a user