playwright.config.health.js 782 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * 隔离配置:仅运行健康模块鉴权契约 E2E(tests/e2e-live/health-contract.spec.js)
  3. * 不接入 globalSetup(不重置任何数据库),只读探测鉴权门禁。
  4. */
  5. var path = require('path');
  6. var LIVE_BASE = process.env.LIVE_BASE_URL || 'http://cfc.iwintrue.com';
  7. module.exports = {
  8. testDir: path.join(__dirname, 'e2e-live'),
  9. timeout: 60000,
  10. expect: { timeout: 15000 },
  11. retries: 0,
  12. workers: 1,
  13. fullyParallel: false,
  14. outputDir: path.join(__dirname, '.live-artifacts', 'health'),
  15. reporter: [['list']],
  16. use: {
  17. baseURL: LIVE_BASE,
  18. headless: true,
  19. ignoreHTTPSErrors: true,
  20. },
  21. projects: [
  22. {
  23. name: 'health-api',
  24. testMatch: /health-contract\.spec\.js$/,
  25. use: { browserName: 'chromium' },
  26. },
  27. ],
  28. };