playwright.config.smoke.js 642 B

1234567891011121314151617181920212223242526
  1. /**
  2. * 最小浏览器冒烟配置(无 globalSetup,避免重置远程测试库)
  3. * 仅用于验证本机 Chromium 能否真实拉起并打开页面。
  4. */
  5. var path = require('path');
  6. module.exports = {
  7. testDir: path.join(__dirname, 'e2e'),
  8. timeout: 60000,
  9. retries: 0,
  10. workers: 1,
  11. use: {
  12. baseURL: process.env.PW_BASE_URL || 'http://127.0.0.1:9082',
  13. headless: true,
  14. ignoreHTTPSErrors: true,
  15. actionTimeout: 10000,
  16. navigationTimeout: 30000,
  17. },
  18. projects: [
  19. {
  20. name: 'chromium',
  21. use: { browserName: 'chromium', viewport: { width: 1280, height: 800 } },
  22. },
  23. ],
  24. reporter: [['list']],
  25. };