test(e2e): E2E_BASE 环境变量覆写——本地 dist 口验未推代码

staging=origin/main 纪律下,spec 分支在途代码的 E2E 只能打本地
dist;此前 BASE 硬编码迫使车道手工绕(T2 收编验收实锤)。

验证: E2E_BASE=http://127.0.0.1:18924 node tests/e2e.mjs 34/34
      PASS(含新 canonical 断言)

Spec: 2026-10-26_blog-5f

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-11-01 09:13:44 +08:00
1 parent c307285a25
commit 814b138f89
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@
import { chromium } from 'playwright'; import { chromium } from 'playwright';
import { mkdirSync } from 'node:fs'; import { mkdirSync } from 'node:fs';
const BASE = 'http://127.0.0.1:18743'; const BASE = process.env.E2E_BASE ?? 'http://127.0.0.1:18743'; // 5f:本地 dist 口可覆写(staging=origin/main 纪律下验未推代码)
const SHOTS = '/tmp/e2e-shots'; const SHOTS = '/tmp/e2e-shots';
mkdirSync(SHOTS, { recursive: true }); mkdirSync(SHOTS, { recursive: true });