playwright.config.ts 1.1 KB

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