fix(test): Playwright截图配置改为始终截图

- 截图配置从 'only-on-failure' 改为 'on'
- 确保每次测试都生成截图证据
This commit is contained in:
2026-06-12 22:21:48 +08:00
parent 017ed885d9
commit c0fbed9169

View File

@@ -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 },