playwright.config.js 557 B

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