playwright.config.js 763 B

1234567891011121314151617181920212223242526272829303132
  1. import { defineConfig, devices } from '@playwright/test';
  2. export default defineConfig({
  3. testDir: './e2e',
  4. fullyParallel: true,
  5. forbidOnly: !!process.env.CI,
  6. retries: process.env.CI ? 2 : 0,
  7. workers: process.env.CI ? 1 : undefined,
  8. reporter: 'html',
  9. use: {
  10. baseURL: 'http://localhost:5173',
  11. trace: 'on-first-retry',
  12. screenshot: 'only-on-failure',
  13. },
  14. projects: [
  15. {
  16. name: 'chromium',
  17. use: {
  18. ...devices['Desktop Chrome'],
  19. launchOptions: {
  20. executablePath: 'C:\\Users\\15818\\AppData\\Local\\chrome-win64\\chrome.exe',
  21. },
  22. },
  23. },
  24. ],
  25. webServer: {
  26. command: 'npx vite',
  27. url: 'http://localhost:5173',
  28. reuseExistingServer: !process.env.CI,
  29. timeout: 30000,
  30. },
  31. });