playwright.config.js 574 B

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