|
|
@@ -18,7 +18,7 @@ import {
|
|
|
captureStableAria, compareOrRefreshGolden, fixtureUserPrompts,
|
|
|
launchWebScaffold, recordFixture, watchConsole, webSnapshotMode, type WebScaffold,
|
|
|
} from './scaffold.ts'
|
|
|
-import { connectFreshWorkspace, expandOwningTurnProcess, newEnglishPage, saveFailureShot } from './support.ts'
|
|
|
+import { connectFreshWorkspace, expandOwningTurnProcess, saveFailureShot } from './support.ts'
|
|
|
|
|
|
const FIXTURE = fileURLToPath(new URL('../../../snapshots/web/cordis-tool-round/session.v2.jsonl', import.meta.url))
|
|
|
const UI_EXPECTED = fileURLToPath(new URL('../../../snapshots/web/cordis-tool-round/ui.expected.md', import.meta.url))
|
|
|
@@ -83,7 +83,11 @@ describe('web e2e: Cordis tools use their owned cards', () => {
|
|
|
if (key === 'modelSelection') modelChanges.push(`${String(seq)}:${JSON.stringify(value)}`)
|
|
|
})
|
|
|
browser = await chromium.launch()
|
|
|
- page = await newEnglishPage(browser)
|
|
|
+ page = await browser.newPage({
|
|
|
+ viewport: { width: 1680, height: 1000 },
|
|
|
+ locale: 'en-US',
|
|
|
+ timezoneId: 'Asia/Shanghai',
|
|
|
+ })
|
|
|
page.on('websocket', (socket) => {
|
|
|
socket.on('framereceived', (frame) => {
|
|
|
const payload = String(frame.payload)
|