From c0fbed91690b67e87c702671f5c2c67c6d5eb3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Fri, 12 Jun 2026 22:21:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20Playwright=E6=88=AA=E5=9B=BE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=94=B9=E4=B8=BA=E5=A7=8B=E7=BB=88=E6=88=AA?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 截图配置从 'only-on-failure' 改为 'on' - 确保每次测试都生成截图证据 --- healthlink-his-ui/playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthlink-his-ui/playwright.config.ts b/healthlink-his-ui/playwright.config.ts index 394c354d0..28c9e220c 100755 --- a/healthlink-his-ui/playwright.config.ts +++ b/healthlink-his-ui/playwright.config.ts @@ -13,7 +13,7 @@ export default defineConfig({ ], use: { baseURL: process.env.TEST_BASE_URL || 'http://localhost:81', - screenshot: 'only-on-failure', + screenshot: 'on', video: 'retain-on-failure', trace: 'retain-on-failure', viewport: { width: 1920, height: 1080 },