From 814b138f89b543fa4bcc7da69adacd979eaa011a Mon Sep 17 00:00:00 2001 From: wait4xx Date: Sun, 1 Nov 2026 09:13:44 +0800 Subject: [PATCH] =?UTF-8?q?test(e2e):=20E2E=5FBASE=20=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E8=A6=86=E5=86=99=E2=80=94=E2=80=94=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=20dist=20=E5=8F=A3=E9=AA=8C=E6=9C=AA=E6=8E=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/e2e.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e.mjs b/tests/e2e.mjs index e3aa105..73ef654 100644 --- a/tests/e2e.mjs +++ b/tests/e2e.mjs @@ -7,7 +7,7 @@ import { chromium } from 'playwright'; 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'; mkdirSync(SHOTS, { recursive: true });