| 1234567891011121314151617181920212223242526272829303132333435 |
- import { defineConfig, devices } from '@playwright/test'
- const webPort = Number(process.env.YAOYAO_E2E_PORT || 18801)
- const upstreamPort = Number(process.env.FAKE_HERMES_PORT || 19119)
- export default defineConfig({
- testDir: './tests/e2e',
- // These suites own different fixtures and run with their dedicated configurations.
- 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', '**/execution-auth.spec.ts', '**/native-environment.spec.ts', '**/hermes-bridge.spec.ts', '**/credential-vault.spec.ts', '**/desktop-hosts.spec.ts'],
- timeout: 30_000,
- fullyParallel: false,
- workers: 1,
- reporter: 'list',
- use: {
- baseURL: `http://127.0.0.1:${webPort}`,
- viewport: { width: 1280, height: 720 },
- trace: 'retain-on-failure',
- screenshot: 'only-on-failure',
- },
- projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
- webServer: [
- {
- command: 'node tests/fixtures/fake-hermes.mjs',
- port: upstreamPort,
- reuseExistingServer: !process.env.YAOYAO_E2E_PORT,
- timeout: 15_000,
- },
- {
- command: 'node tests/fixtures/e2e-web-server.mjs',
- url: `http://127.0.0.1:${webPort}/healthz`,
- reuseExistingServer: !process.env.YAOYAO_E2E_PORT,
- timeout: 15_000,
- },
- ],
- })
|