playwright.config.js 549 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Playwright E2E 测试配置
  3. */
  4. module.exports = {
  5. testDir: './e2e',
  6. timeout: 60000,
  7. retries: 0,
  8. use: {
  9. baseURL: 'http://cfc.iwintrue.com/admin',
  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. channel: 'chrome',
  21. viewport: { width: 1440, height: 900 },
  22. },
  23. },
  24. ],
  25. reporter: [
  26. ['html', { outputFolder: 'playwright-report' }],
  27. ['list'],
  28. ],
  29. }