fix(test): Playwright截图配置改为始终截图
- 截图配置从 'only-on-failure' 改为 'on' - 确保每次测试都生成截图证据
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user