playwright.workspace.config.ts 705 B

12345678910111213141516171819202122
  1. import { defineConfig, devices } from '@playwright/test'
  2. export default defineConfig({
  3. testDir: './tests/e2e',
  4. testMatch: 'workspace-chat.spec.ts',
  5. workers: 1,
  6. timeout: 45_000,
  7. reporter: 'list',
  8. use: {
  9. baseURL: 'http://127.0.0.1:18802',
  10. viewport: { width: 1280, height: 800 },
  11. trace: 'retain-on-failure',
  12. screenshot: 'only-on-failure',
  13. },
  14. projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
  15. webServer: {
  16. command:
  17. 'WORKSPACE_FIXTURE_PORT=18802 WORKSPACE_FIXTURE_UPSTREAM_PORT=19120 node --import tsx tests/fixtures/workspace-server.ts',
  18. url: 'http://127.0.0.1:18802/healthz',
  19. reuseExistingServer: false,
  20. timeout: 20_000,
  21. },
  22. })