Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions apps/desktop/e2e/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,13 +681,24 @@ export const test = base.extend<E2eTestFixtures>({
// 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);
},
);
},
});

Expand Down