playwright.config.ts 841 B

12345678910111213141516171819202122232425262728293031
  1. import { defineConfig, devices } from '@playwright/test'
  2. export default defineConfig({
  3. testDir: './tests/e2e',
  4. testIgnore: ['**/workspace-chat.spec.ts', '**/avatarReference.spec.ts'],
  5. timeout: 30_000,
  6. fullyParallel: false,
  7. workers: 1,
  8. reporter: 'list',
  9. use: {
  10. baseURL: 'http://127.0.0.1:18801',
  11. viewport: { width: 1280, height: 720 },
  12. trace: 'retain-on-failure',
  13. screenshot: 'only-on-failure',
  14. },
  15. projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
  16. webServer: [
  17. {
  18. command: 'node tests/fixtures/fake-hermes.mjs',
  19. port: 19119,
  20. reuseExistingServer: true,
  21. timeout: 15_000,
  22. },
  23. {
  24. command: 'node tests/fixtures/e2e-web-server.mjs',
  25. url: 'http://127.0.0.1:18801/healthz',
  26. reuseExistingServer: true,
  27. timeout: 15_000,
  28. },
  29. ],
  30. })