Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

test: fix targeted Omarchy visual actions and preserve shell menu

quanru3a468560de2d
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjs
index eb13d42..acee963 100644
--- a/tests/contracts/test_pages_report_history.mjs
+++ b/tests/contracts/test_pages_report_history.mjs
@@ -164,12 +164,22 @@ test('keeps visual E2E interactions at task level with proven aiTap exceptions',
'- aiTap: The large blue full-width Open Doubao sign-in button near the bottom of the central Sign in panel, around 50% width and 73% screen height',
'- aiTap: The large blue full-width Open Doubao sign-in button near the bottom of the central Sign in panel, around 50% width and 73% screen height',
'- aiTap: The blue Simulate successful sign-in button in the CI-only modal, around 50% width and 43% screen height',
+ '- aiTap: The large blue full-width Open Doubao sign-in button near the bottom of the central Sign in panel, around 50% width and 73% screen height',
+ '- aiTap: The trigger selection dropdown currently showing fn',
+ '- aiTap: Disabled option in the open trigger selection dropdown',
'- aiScroll:',
+ '- aiTap: The enabled Voice polishing switch at the upper right of the Voice polishing section',
'- aiScroll:',
'- computer.inputText: { target: The text entry to the right of Model containing synthetic-model, value: ci-fail-model, point: { x: 850, y: 477 } }',
'- aiTap: Test endpoint button in the Voice polishing section',
'- computer.inputText: { target: The text entry to the right of Model containing ci-fail-model, value: ci-ok-model, point: { x: 850, y: 477 } }',
'- aiTap: Test failed — try again button in the Voice polishing section',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
+ '- aiScroll:',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
+ '- aiScroll:',
+ '- aiTap: The Recognition service dropdown currently showing Doubao account',
+ '- aiTap: Volcengine API option in the open Recognition service dropdown',
'- aiTap: The microphone dropdown currently showing Synthetic microphone one',
'- aiTap: Synthetic microphone two option in the open microphone dropdown',
'- aiTap: Right-arrow Next button in the fixed top navigation',
diff --git a/tests/e2e/cases/onboarding-regressions.yaml b/tests/e2e/cases/onboarding-regressions.yaml
index fbe73a2..7c05b9f 100644
--- a/tests/e2e/cases/onboarding-regressions.yaml
+++ b/tests/e2e/cases/onboarding-regressions.yaml
@@ -26,7 +26,7 @@ cases:
tags: [shard-4]
steps:
- aiAssert: The visible Doubao Say window starts on the Sign in step and says the user is not signed in.
- - aiAct: Open the CI-only Doubao sign-in window.
+ - aiTap: The large blue full-width Open Doubao sign-in button near the bottom of the central Sign in panel, around 50% width and 73% screen height
- aiWaitFor:
prompt: The CI-only Synthetic Doubao sign-in window is visible.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
@@ -51,7 +51,8 @@ cases:
steps:
- fixture.prepare: { mode: trigger-settings }
- aiAssert: The Trigger key step shows Choose how to start speaking and Voice polishing is enabled.
- - aiAct: Choose Disabled in the trigger selection dropdown.
+ - aiTap: The trigger selection dropdown currently showing fn
+ - aiTap: Disabled option in the open trigger selection dropdown
- aiAssert: Active trigger says Disabled and Voice polishing has not changed.
- aiAct: Try to continue to the next step.
- aiAssert: The current step is still Trigger key and the message Choose an enabled trigger to continue is visible.
@@ -76,7 +77,7 @@ cases:
- aiWaitFor:
prompt: The Trigger key step and the Voice polishing switch are visible.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
- - aiAct: Turn Voice polishing off.
+ - aiTap: The enabled Voice polishing switch at the upper right of the Voice polishing section
- aiAssert: Voice polishing disabled is visible, the switch is off, and the polishing Base URL and Model fields are hidden.
- aiAct: Turn Voice polishing on and reveal its Model input.
- aiWaitFor:
@@ -108,7 +109,9 @@ cases:
steps:
- fixture.prepare: { mode: microphone-gate }
- aiAssert: The visible Doubao Say window starts on the Microphone step, shows Synthetic microphone one, and offers Check microphone · 3 seconds.
- - aiAct: Continue to Voice test without checking the microphone, then reveal Finish setup.
+ - aiTap: Right-arrow Next button in the fixed top navigation
+ - aiScroll:
+ options: { direction: down, scrollType: singleAction, distance: 500 }
- aiWaitFor:
prompt: Voice test is visible and Finish setup is fully visible.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
@@ -118,7 +121,9 @@ cases:
prompt: The visible feedback says Microphone is working and instructs the user to continue to the trigger key step.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
- aiAssert: The microphone result says Microphone is working and Synthetic microphone one remains selected.
- - aiAct: Continue to Voice test and reveal Finish setup.
+ - aiTap: Right-arrow Next button in the fixed top navigation
+ - aiScroll:
+ options: { direction: down, scrollType: singleAction, distance: 500 }
- aiWaitFor:
prompt: Voice test is visible and Finish setup is fully visible.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
@@ -163,7 +168,8 @@ cases:
steps:
- fixture.prepare: { mode: volcengine }
- aiAssert: The visible Doubao Say window starts on Sign in with Doubao account selected and right-arrow Next disabled.
- - aiAct: Choose Volcengine API as the Recognition service.
+ - aiTap: The Recognition service dropdown currently showing Doubao account
+ - aiTap: Volcengine API option in the open Recognition service dropdown
- aiWaitFor:
prompt: The page title is Recognition and the empty API Key field is visible.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
diff --git a/tests/e2e/midscene.config.ts b/tests/e2e/midscene.config.ts
index 5aa615a..95d8b96 100644
--- a/tests/e2e/midscene.config.ts
+++ b/tests/e2e/midscene.config.ts
@@ -11,6 +11,7 @@ interface DesktopContext {
agent?: ComputerAgent;
createAgent: () => Promise<ComputerAgent>;
environment: 'ubuntu' | 'omarchy';
+ shell: boolean;
fixtureMode?: string;
resetFixture?: (mode: string) => Promise<void>;
barConfigBackup?: string;
@@ -101,6 +102,7 @@ const setup = defineProjectSetup<DesktopContext>({
agent: await createAgent(),
createAgent,
environment: omarchy ? 'omarchy' : 'ubuntu',
+ shell,
};
onTeardown(() => context.agent?.destroy());
const fluxbox = spawn('fluxbox', [], { detached: true, stdio: 'ignore', env: process.env });
@@ -342,7 +344,7 @@ export default defineTestProject<DesktopContext>({
if (existing) return existing.agent;
context.agent ??= await context.createAgent();
await context.resetFixture?.(context.fixtureMode ?? '');
- if (context.environment === 'omarchy') {
+ if (context.environment === 'omarchy' && !context.shell) {
// 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