test(web): pin queue replay locale
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
|||||||
assertFixtureInventory, captureStableAria, compareOrRefreshGolden,
|
assertFixtureInventory, captureStableAria, compareOrRefreshGolden,
|
||||||
launchWebScaffold, watchConsole, webSnapshotMode, type WebScaffold,
|
launchWebScaffold, watchConsole, webSnapshotMode, type WebScaffold,
|
||||||
} from './scaffold.ts'
|
} from './scaffold.ts'
|
||||||
import { connectFreshWorkspace, saveFailureShot } from './support.ts'
|
import { connectFreshWorkspace, newEnglishPage, saveFailureShot } from './support.ts'
|
||||||
|
|
||||||
const SNAPSHOT_DIR = fileURLToPath(new URL('./snapshots/queue-actions', import.meta.url))
|
const SNAPSHOT_DIR = fileURLToPath(new URL('./snapshots/queue-actions', import.meta.url))
|
||||||
const FIXTURE = fileURLToPath(new URL('./snapshots/live-interactions/session.jsonl', import.meta.url))
|
const FIXTURE = fileURLToPath(new URL('./snapshots/live-interactions/session.jsonl', import.meta.url))
|
||||||
@@ -63,7 +63,7 @@ describe('web e2e: queue row actions', () => {
|
|||||||
scaffold = await launchWebScaffold({ replayFixture: FIXTURE, replayOverride: overridePath })
|
scaffold = await launchWebScaffold({ replayFixture: FIXTURE, replayOverride: overridePath })
|
||||||
scaffold.ctx.on('session/event', (_session, event: SessionEvent) => { sessionEvents.push(event) })
|
scaffold.ctx.on('session/event', (_session, event: SessionEvent) => { sessionEvents.push(event) })
|
||||||
browser = await chromium.launch()
|
browser = await chromium.launch()
|
||||||
page = await browser.newPage({ viewport: { width: 1680, height: 1000 } })
|
page = await newEnglishPage(browser)
|
||||||
const tripwire = watchConsole(page)
|
const tripwire = watchConsole(page)
|
||||||
await page.goto(scaffold.baseUrl, { waitUntil: 'load' })
|
await page.goto(scaffold.baseUrl, { waitUntil: 'load' })
|
||||||
await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
|
await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
|
||||||
|
|||||||
Reference in New Issue
Block a user