playwright.grok-auth.config.ts 627 B

1234567
  1. import {defineConfig,devices} from '@playwright/test'
  2. export default defineConfig({
  3. testDir:'./tests/e2e',testMatch:'grok-auth.spec.ts',workers:1,timeout:45000,reporter:'list',
  4. use:{baseURL:'http://127.0.0.1:18842',viewport:{width:1440,height:900},trace:'retain-on-failure',screenshot:'only-on-failure'},
  5. projects:[{name:'chromium',use:{...devices['Desktop Chrome']}}],
  6. webServer:{command:'WORKSPACE_FIXTURE_GROK_AUTH=1 WORKSPACE_FIXTURE_PORT=18842 WORKSPACE_FIXTURE_UPSTREAM_PORT=19142 node --import tsx tests/fixtures/workspace-server.ts',url:'http://127.0.0.1:18842/healthz',reuseExistingServer:false,timeout:60000},
  7. })