playwright.config.js 587 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Playwright E2E 测试配置
  3. */
  4. module.exports = {
  5. testDir: require('path').join(__dirname, 'e2e'),
  6. timeout: 60000,
  7. retries: 0,
  8. use: {
  9. baseURL: 'http://cfc.iwintrue.com',//cfc.iwintrue.com',//cfc.iwintrue.com',
  10. headless: true,
  11. ignoreHTTPSErrors: true,
  12. actionTimeout: 15000,
  13. navigationTimeout: 30000,
  14. },
  15. projects: [
  16. {
  17. name: 'desktop',
  18. use: {
  19. browserName: 'chromium',
  20. viewport: { width: 1440, height: 900 },
  21. },
  22. },
  23. ],
  24. reporter: [
  25. ['html', { outputFolder: 'playwright-report' }],
  26. ['list'],
  27. ],
  28. }