Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

test(e2e): prime VNC frames after fixture reset

quanru4f8b1dbea7b7
diff --git a/tests/e2e/midscene.config.ts b/tests/e2e/midscene.config.ts
index 35ce810..38b9b1b 100644
--- a/tests/e2e/midscene.config.ts
+++ b/tests/e2e/midscene.config.ts
@@ -336,6 +336,17 @@ export default defineTestProject<DesktopContext>({
if (existing) return existing.agent;
context.agent ??= await context.createAgent();
await context.resetFixture?.(context.fixtureMode ?? '');
+ if (context.environment === 'omarchy') {
+ // The full-screen TigerVNC viewer can return two stale black
+ // frames after the guest fixture is replaced. A harmless click
+ // on the app header focuses the viewer and forces a fresh frame
+ // before the first visual node captures its screenshot.
+ await context.agent.interface.inputPrimitives.pointer.tap({
+ x: 640,
+ y: 50,
+ });
+ await sleep(750);
+ }
active.set(runId, { agent: context.agent, context });
return context.agent;
},