playwright.config.js 532 B

123456789101112131415161718192021222324
  1. import playwright from '@playwright/test';
  2. export default playwright.defineConfig({
  3. outputDir: '../dist/test-results',
  4. webServer: {
  5. command: 'npm run server',
  6. port: 8080,
  7. timeout: 120 * 1000
  8. },
  9. projects: [
  10. {
  11. name: 'desktop',
  12. testMatch: '**/desktop.spec.js',
  13. },
  14. {
  15. name: 'browser',
  16. testMatch: '**/browser.spec.js',
  17. use: {
  18. baseURL: 'http://localhost:8080'
  19. },
  20. },
  21. ],
  22. });