playwright.config.js 542 B

1234567891011121314151617181920212223242526
  1. const { defineConfig, devices } = require('@playwright/test');
  2. module.exports = defineConfig({
  3. testDir: './e2e',
  4. timeout: 30000,
  5. retries: 0,
  6. workers: 1,
  7. reporter: 'list',
  8. use: {
  9. baseURL: 'https://ajy.danclub.cn',
  10. headless: true,
  11. screenshot: 'only-on-failure',
  12. launchOptions: {
  13. executablePath: '/usr/bin/chromium-browser',
  14. args: ['--no-sandbox', '--disable-setuid-sandbox'],
  15. },
  16. },
  17. projects: [
  18. {
  19. name: 'chromium',
  20. use: {
  21. browserName: 'chromium',
  22. },
  23. },
  24. ],
  25. });