playwright.team-tools.config.ts 651 B

12345678910
  1. import { defineConfig, devices } from '@playwright/test'
  2. export default defineConfig({
  3. testDir: './tests/e2e', testMatch: 'team-tools.spec.ts', workers: 1, timeout: 45_000, reporter: 'list',
  4. use: { baseURL: 'http://127.0.0.1:18808', trace: 'retain-on-failure', screenshot: 'only-on-failure' },
  5. projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
  6. webServer: {
  7. command: 'WORKSPACE_FIXTURE_TEAM_TOOLS=1 WORKSPACE_FIXTURE_PORT=18808 WORKSPACE_FIXTURE_UPSTREAM_PORT=19128 node --import tsx tests/fixtures/workspace-server.ts',
  8. url: 'http://127.0.0.1:18808/healthz', reuseExistingServer: false, timeout: 20_000,
  9. },
  10. })