mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
* feat(web): fork active and archived sessions from the session list * fix(codex): preserve fork titles during history replay * fix(web): limit list forks to supported Codex sessions
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
const chromePath = process.env.PLAYWRIGHT_CHROME_PATH
|
|
|
|
/** Live hub session tests — no Vite; hits HAPI_URL with HAPI_LIVE=1. */
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
testMatch: [
|
|
'mermaid-lightbox-session.spec.ts',
|
|
'latex-bracket-math-session.spec.ts',
|
|
'codex-fork-while-running.spec.ts',
|
|
'codex-archived-fork.spec.ts',
|
|
'codex-session-list-fork.spec.ts',
|
|
'late-codex-command-session.spec.ts',
|
|
],
|
|
timeout: 120_000,
|
|
expect: { timeout: 20_000 },
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
reporter: [['list']],
|
|
use: {
|
|
...devices['Desktop Chrome'],
|
|
viewport: { width: 1440, height: 1100 },
|
|
...(chromePath
|
|
? {
|
|
launchOptions: {
|
|
executablePath: chromePath,
|
|
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'],
|
|
},
|
|
}
|
|
: {}),
|
|
},
|
|
})
|