/** * 最小浏览器冒烟配置(无 globalSetup,避免重置远程测试库) * 仅用于验证本机 Chromium 能否真实拉起并打开页面。 */ var path = require('path'); module.exports = { testDir: path.join(__dirname, 'e2e'), timeout: 60000, retries: 0, workers: 1, use: { baseURL: process.env.PW_BASE_URL || 'http://127.0.0.1:9082', headless: true, ignoreHTTPSErrors: true, actionTimeout: 10000, navigationTimeout: 30000, }, projects: [ { name: 'chromium', use: { browserName: 'chromium', viewport: { width: 1280, height: 800 } }, }, ], reporter: [['list']], };