diff --git a/apps/desktop/e2e/fixtures.ts b/apps/desktop/e2e/fixtures.ts index 03859a084d..e2387b38d5 100644 --- a/apps/desktop/e2e/fixtures.ts +++ b/apps/desktop/e2e/fixtures.ts @@ -681,13 +681,24 @@ export const test = base.extend({ // beside it. Shown because the accessibility journey follows real native // focus order through the transcript into the composer controls. accessibilityNarrativeWindow: async ({}, use) => { - await withE2eWindow({ - seed: false, - readinessSelector: '[data-turn-id]', - e2eFixtureScenario: 'turn-narrative', - locale: 'zh-CN', - showWindow: true, - }, use); + await withE2eWindow( + { + seed: false, + readinessSelector: '[data-turn-id]', + e2eFixtureScenario: 'turn-narrative', + locale: 'zh-CN', + showWindow: true, + }, + async (page) => { + // `[data-turn-id]` can render before the deferred fixture application + // finishes opening its seeded Review face. Handing the page to a test + // at that point lets a test-opened face lose to the later fixture + // action. The visible seeded panel is the convergence point for both + // the transcript and the fixture-owned workbar state. + await expect(page.getByRole('region', { name: 'Git 变更' })).toBeVisible(); + await use(page); + }, + ); }, });