Doubao-powered voice input for Linux, Wayland and Omarchy
test(e2e): use one-shot nodes with flash model
quanru97b6d01813a1
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjsindex 716f33e..98f18b7 100644--- a/tests/contracts/test_pages_report_history.mjs+++ b/tests/contracts/test_pages_report_history.mjs@@ -130,7 +130,7 @@ test('assigns every product case to exactly one balanced shard', async () => {});});-test('keeps visual E2E interactions at task level', async () => {+test('uses one-shot nodes for direct visual interactions', async () => {for (const file of ['onboarding.yaml','onboarding-regressions.yaml',@@ -141,16 +141,14 @@ test('keeps visual E2E interactions at task level', async () => {new URL(`../e2e/cases/${file}`, import.meta.url),'utf8',);- assert.doesNotMatch(- source,- /^\s+-\s+(?:aiTap|aiScroll|aiInput|computer\.inputText):/gm,- `${file} must express visual interactions as task-level aiAct steps`,- );- assert.doesNotMatch(- source,- /^\s+-\s+wait:/gm,- `${file} must wait for a visible state with aiWaitFor instead of sleeping`,- );+ const aiActs = source.match(/^\s+-\s+aiAct:\s+.+$/gm) ?? [];+ for (const aiAct of aiActs) {+ assert.match(+ aiAct,+ /scroll/i,+ `${file} must use aiTap, computer.inputText, or computer.keyPress for direct interactions: ${aiAct.trim()}`,+ );+ }}});diff --git a/tests/e2e/cases/onboarding-regressions.yaml b/tests/e2e/cases/onboarding-regressions.yamlindex 2a959f0..b56e5bb 100644--- a/tests/e2e/cases/onboarding-regressions.yaml+++ b/tests/e2e/cases/onboarding-regressions.yaml@@ -3,226 +3,195 @@ cases:tags: [shard-1]steps:- aiAssert: The current step is Sign in and both left-arrow Previous and right-arrow Next in the fixed top navigation are disabled.- - aiAct: Open the CI-only Doubao sign-in window.- - aiWaitFor:- prompt: The CI-only Synthetic Doubao sign-in window is visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The synthetic sign-in window says it makes no network request and uses no real credentials.+ - aiAct: Scroll inside the Sign in content panel until Open Doubao sign-in is fully visible.+ - aiTap: Open Doubao sign-in button in the Sign in content panel+ - wait: { duration: 500 }+ - aiAssert: The CI-only Synthetic Doubao sign-in window is visible.- computer.keyPress: { keyName: Escape }- - aiWaitFor:- prompt: The synthetic sign-in window is gone and Doubao Say remains on Sign in.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: Doubao Say remains on Sign in and the right-arrow Next button is disabled.- - aiAct: Open the CI-only Doubao sign-in window again from the Sign in content panel.- - aiWaitFor:- prompt: The CI-only Synthetic Doubao sign-in window is visible again.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAct: Simulate a successful sign-in.- - aiWaitFor:- prompt: The sign-in window is closed and Doubao Say has advanced to the Microphone step.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: Doubao Say is on the Microphone step and no synthetic sign-in window is open.-+ - wait: { duration: 500 }+ - aiAssert: The synthetic sign-in window is gone, Doubao Say remains on Sign in, and right-arrow Next remains disabled.+ - aiAct: Scroll inside the Sign in content panel until Open Doubao sign-in is fully visible.+ - aiTap: Open Doubao sign-in button in the Sign in content panel+ - wait: { duration: 500 }+ - aiAssert: A Synthetic Doubao sign-in window is visible and explicitly says it is CI-only, makes no network request, and uses no real credentials.+ - aiTap: Simulate successful sign-in button in the Synthetic Doubao sign-in window+ - wait: { duration: 500 }+ - aiAssert: The synthetic sign-in window closed and Doubao Say automatically advanced to the Microphone step.- name: Preserve signed-in account across backward navigationtags: [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.- - aiWaitFor:- prompt: The CI-only Synthetic Doubao sign-in window is visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The synthetic sign-in window says it makes no network request and uses no real credentials.- - aiAct: Simulate a successful sign-in.- - aiWaitFor:- prompt: The sign-in window is closed and Doubao Say has advanced to the Microphone step.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAct: Return to the Sign in step.- - aiWaitFor:- prompt: The Sign in step shows the signed-in account status and Sign in again or change account.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The Sign in step shows the heading Your voice, wherever you type; left-arrow Previous is disabled, right-arrow Next is enabled, and the account status says Signed in.- - aiAct: Continue to the Microphone step.- - aiWaitFor:- prompt: The Microphone step shows Let's make sure we can hear you.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The Microphone step is visible and no synthetic sign-in window is open.-+ - aiAct: Scroll inside the Sign in content panel until Open Doubao sign-in is fully visible.+ - aiTap: Open Doubao sign-in button in the Sign in content panel+ - wait: { duration: 500 }+ - aiAssert: A Synthetic Doubao sign-in window is visible and explicitly says it is CI-only, makes no network request, and uses no real credentials.+ - aiTap: Simulate successful sign-in button in the Synthetic Doubao sign-in window+ - wait: { duration: 500 }+ - aiAssert: The synthetic sign-in window closed and Doubao Say automatically advanced to the Microphone step.+ - aiAct: Scroll to the bottom of the Microphone central content panel.+ - aiTap: Left-arrow Previous button in the fixed top navigation+ - aiAssert: The Sign in step shows the heading Your voice, wherever you type; left-arrow Previous is disabled and right-arrow Next is enabled.+ - aiAct: Scroll inside the Sign in content panel until the signed-in account status and Sign in again / change account are fully visible.+ - aiAssert: The account status says Signed in and Sign in again / change account is available.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The Microphone step shows Let's make sure we can hear you, and no synthetic sign-in window is open.- name: Require an enabled trigger and retain the replacementtags: [shard-4]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.- - aiAssert: Active trigger says Disabled and Voice polishing has not changed.- - aiAct: Try to continue to the next step.+ - aiAssert: The current step is Trigger key and the heading Choose how to start speaking is visible.+ - aiTap: Trigger selection dropdown below Active trigger+ - aiTap: Disabled option in the open trigger selection dropdown+ - aiTap: Right-arrow Next button in the fixed top navigation- aiAssert: The current step is still Trigger key and the message Choose an enabled trigger to continue is visible.- - aiAct: Choose F8 in the trigger selection dropdown.+ - aiTap: Trigger selection dropdown below Active trigger+ - aiTap: F8 option in the open trigger selection dropdown- aiAssert: Active trigger shows F8 and F8 is selected in the trigger dropdown.- - aiAct: Continue to Voice test.- - aiWaitFor:- prompt: Voice test shows Try a sentence. Nothing gets pasted and the right-arrow Next button is disabled.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAct: Return to Trigger key.- - aiWaitFor:- prompt: The Trigger key step is visible again.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Voice test, the heading Try a sentence. Nothing gets pasted is visible, and right-arrow Next is disabled.+ - aiTap: Left-arrow Previous button in the fixed top navigation- aiAssert: The Trigger key step still shows Active trigger F8 and F8 is selected in the trigger dropdown.-- name: Toggle polishing without losing configurationtags: [shard-3]steps:- fixture.prepare: { mode: trigger-settings }- - aiAct: Reveal the Voice polishing controls.- - aiWaitFor:- prompt: The Trigger key step and the Voice polishing switch are visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAct: Turn Voice polishing off.+ - aiAssert: The current step is Trigger key and the heading Choose how to start speaking is visible.+ - aiAct: Scroll inside the central content panel until the Voice polishing heading and switch are fully visible.+ - aiTap: Enabled switch beside Voice polishing- 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:- prompt: Voice polishing is enabled and its Model input is visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The Voice polishing switch is on and the Model input contains exactly synthetic-model.-+ - aiTap: Disabled switch beside Voice polishing+ - aiAssert: Voice polishing enabled is visible and the switch is on.+ - aiAct: Scroll downward inside the central content panel until the Voice polishing Model input and its complete value are fully visible.+ - aiAssert: The Voice polishing Model input contains exactly synthetic-model.- name: Recover from an endpoint failuretags: [shard-2]steps:- fixture.prepare: { mode: trigger-settings }- - aiAssert: The Trigger key step shows Choose how to start speaking and Voice polishing is enabled.- - aiAct: Replace the Voice polishing Model value with ci-fail-model.+ - aiAssert: The current step is Trigger key and the heading Choose how to start speaking is visible.+ - aiAct: Scroll inside the central content panel until the Voice polishing Model input is fully visible. Do not click Test endpoint.+ - computer.inputText:+ target: Voice polishing Model input+ value: ci-fail-model- aiAssert: The Voice polishing Model input contains exactly ci-fail-model.- - aiAct: Test the Voice polishing endpoint.- - aiWaitFor:- prompt: The endpoint feedback contains Synthetic endpoint unavailable and the retry button says Test failed — try again.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The endpoint failure and its enabled retry button are both visible.- - aiAct: Replace the Voice polishing Model value with ci-ok-model.+ - aiAct: Scroll downward inside the central content panel until the Test endpoint button is fully visible.+ - aiAssert: The Test endpoint button in Voice polishing is fully visible.+ - aiTap: Test endpoint button in the Voice polishing section+ - wait: { duration: 750 }+ - aiAct: Scroll downward inside the central content panel until both the endpoint failure text and the retry button are fully visible.+ - aiAssert: "The visible endpoint feedback says Endpoint test failed: Synthetic endpoint unavailable, and the enabled retry button says Test failed — try again."+ - aiAct: Scroll upward inside the central content panel until the Model input under Voice polishing is fully visible. Do not click the retry button.+ - computer.inputText:+ target: Model input under Voice polishing+ value: ci-ok-model- aiAssert: The Voice polishing Model input contains exactly ci-ok-model, without the word fail.- - aiAct: Retry the Voice polishing endpoint test.- - aiWaitFor:- prompt: The endpoint result contains Synthetic endpoint response and the button says Endpoint works.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The previous Synthetic endpoint unavailable error is gone and the successful endpoint result is visible.-+ - aiAct: Scroll inside the central content panel until the Test failed — try again button is fully visible.+ - aiTap: Test failed — try again button in the Voice polishing section+ - wait: { duration: 750 }+ - aiAct: Scroll inside the central content panel until the endpoint result text below the retry button is fully visible.+ - aiAssert: "The endpoint result says Endpoint works: Synthetic endpoint response, the enabled button says Endpoint works, and the previous Synthetic endpoint unavailable error is no longer visible."- name: Microphone check gates setup completiontags: [shard-4]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.- - aiWaitFor:- prompt: Voice test is visible and Finish setup is fully visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The Finish setup button is visibly disabled.- - aiAct: Return to Microphone and run Check microphone · 3 seconds.- - aiWaitFor:- 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.- - aiWaitFor:- prompt: Voice test is visible and Finish setup is fully visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Trigger key and Active trigger is enabled.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Voice test.+ - aiAct: Scroll down inside the Voice test content panel until the Finish setup button is fully visible.+ - aiAssert: The current step is Voice test and the Finish setup button is visibly disabled.+ - aiTap: Left-arrow Previous button in the fixed top navigation+ - aiAssert: The current step is Trigger key.+ - aiTap: Left-arrow Previous button in the fixed top navigation+ - aiAssert: The current step is Microphone.+ - aiTap: Check microphone · 3 seconds button on the Microphone step+ - wait: { duration: 750 }+ - aiAssert: A visible message says Microphone is working and instructs the user to continue to the trigger key step.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Trigger key.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Voice test.+ - aiAct: Scroll down inside the Voice test content panel until the Finish setup button is fully visible.- aiAssert: The Finish setup button is visibly enabled.-- name: Complete and cancel a voice test safelytags: [shard-3]steps:- fixture.prepare: { mode: voice-test }- - aiAct: Reveal Finish setup.- - aiWaitFor:- prompt: Voice test is visible and the disabled Finish setup control is fully visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The setup control is disabled before any voice test passes.- - aiAct: Start the voice test.- - aiWaitFor:- prompt: Synthetic voice test transcript is visible, and both Finish & check result and Cancel test are available.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The listening voice test has a synthetic transcript and offers both finish and cancel actions.- - aiAct: Cancel the active voice test.- - aiWaitFor:- prompt: The Listening overlay is gone and the visible feedback says Voice test cancelled and nothing was pasted or sent.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: Start voice test is available again, the transcript is empty, and the visible feedback says Voice test cancelled and nothing was pasted or sent.- - aiAct: Reveal the voice-test result and Finish setup control.- - aiWaitFor:- prompt: The cancelled voice-test result and the disabled Finish setup control are fully visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The setup control is disabled and says Voice test cancelled and nothing pasted or sent.- - aiAct: Start another voice test.- - aiWaitFor:- prompt: Synthetic voice test transcript is visible and Finish & check result is available again.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAct: Finish the active voice test and check its result.- - aiWaitFor:- prompt: The Listening overlay is gone and the visible feedback says Voice test passed and nothing was pasted or sent.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: Start voice test is available again, and the enabled setup control says Voice test passed and nothing pasted or sent.-+ - aiAssert: The current step is Voice test and Start voice test is available.+ - aiAct: Scroll down inside the Voice test content panel until the Finish setup button is fully visible.+ - aiAssert: The Finish setup button is visibly disabled.+ - aiTap: Start voice test button in the Voice test content panel+ - wait: { duration: 750 }+ - aiAssert: Synthetic voice test transcript is visible, and both Finish & check result and Cancel test are available.+ - aiTap: Cancel test button in the Voice test content panel+ - wait: { duration: 1000 }+ - aiAssert: The Listening overlay is gone, Start voice test is available, the voice-test transcript is empty, and the visible feedback says Voice test cancelled and nothing was pasted or sent.+ - aiAct: Scroll down inside the Voice test content panel until the setup button is fully visible.+ - aiAssert: The disabled setup button visibly says Voice test cancelled and nothing pasted or sent.+ - aiTap: Start voice test button in the Voice test content panel+ - wait: { duration: 750 }+ - aiAssert: Synthetic voice test transcript is visible, and Finish & check result is available again.+ - aiTap: Finish & check result button in the Voice test content panel+ - wait: { duration: 1250 }+ - aiAssert: The Listening overlay is gone, Start voice test is available, and the visible feedback says Voice test passed and nothing was pasted or sent.+ - aiAct: Scroll down inside the Voice test content panel until the setup button is fully visible.+ - aiAssert: The enabled setup button visibly says Voice test passed and nothing pasted or sent.- name: Switch to Volcengine and validate credentialstags: [shard-3]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.- - aiWaitFor:- prompt: The page title is Recognition and the empty API Key field is visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: Open Doubao sign-in is hidden, and both Test API key and right-arrow Next are disabled while the API Key is empty.- - aiAct: Enter synthetic-ci-key in the API Key field.- - aiWaitFor:- prompt: The API Key field has a non-empty masked value and Test API key is enabled.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The API Key is visibly saved as a masked non-empty value.- - aiAct: Test the API key.- - aiWaitFor:- prompt: The result says API key accepted by synthetic endpoint and the page reports that the official API is ready.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The accepted API key result and official API ready state are both visible.- - aiAct: Continue to Microphone.- - aiWaitFor:- prompt: The Microphone step shows Let's make sure we can hear you.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The current step is Microphone.-+ - aiTap: Recognition service dropdown+ - aiTap: Volcengine API option in the open Recognition service dropdown+ - aiAct: Scroll down inside the central content panel until the API Key field and Test API key button are both visible.+ - aiAssert: The page is now Recognition, shows an empty API Key field, hides Open Doubao sign-in, and both Test API key and right-arrow Next are visibly disabled.+ - computer.inputText:+ target: API Key field+ value: synthetic-ci-key+ - aiAssert: The API Key field visibly contains a non-empty masked value and the Test API key button is enabled.+ - aiTap: Test API key button below the API Key field+ - wait: { duration: 750 }+ - aiAct: Scroll downward exactly once inside the central content panel so the API key test result is visible, then stop.+ - aiAssert: The result says API key accepted by synthetic endpoint and the page reports that the official API is ready.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Microphone and the heading Let's make sure we can hear you is visible.- name: Changing microphone requires another checktags: [shard-2]steps:- fixture.prepare: { mode: microphone-change }- aiAssert: The visible Doubao Say window starts on the Microphone step with Synthetic microphone one selected.- - aiAct: Choose Synthetic microphone two in the microphone dropdown.- - aiWaitFor:- prompt: The visible feedback says Microphone saved and requires a new three-second check.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: Synthetic microphone two is selected and a new microphone check is required.- - aiAct: Continue to Voice test without running the new microphone check, then reveal Finish setup.- - aiWaitFor:- prompt: Voice test is visible and Finish setup is fully visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }+ - aiTap: Microphone dropdown showing Synthetic microphone one+ - aiTap: Synthetic microphone two option in the open microphone dropdown+ - aiAssert: A visible message says Microphone saved and requires a new three-second check.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Trigger key.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Voice test.+ - aiAct: Scroll down inside the Voice test content panel until the Finish setup button is fully visible.- aiAssert: The Finish setup button is visibly disabled.- - aiAct: Return to Microphone and run Check microphone · 3 seconds.- - aiWaitFor:- prompt: The visible feedback says Microphone is working and Synthetic microphone two remains selected.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The microphone result says Microphone is working and Synthetic microphone two remains selected.- - aiAct: Continue to Voice test and reveal Finish setup.- - aiWaitFor:- prompt: Voice test is visible and Finish setup is fully visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }+ - aiTap: Left-arrow Previous button in the fixed top navigation+ - aiAssert: The current step is Trigger key.+ - aiTap: Left-arrow Previous button in the fixed top navigation+ - aiAssert: The current step is Microphone.+ - aiTap: Check microphone · 3 seconds button on the Microphone step+ - wait: { duration: 750 }+ - aiAssert: The result says Microphone is working and Synthetic microphone two remains selected.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Trigger key.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Voice test.+ - aiAct: Scroll down inside the Voice test content panel until the Finish setup button is fully visible.- aiAssert: The Finish setup button is visibly enabled.-- name: Capture and retain a custom trigger shortcuttags: [shard-2]steps:- fixture.prepare: { mode: shortcut-capture }- - aiAssert: Trigger key shows Active trigger fn and its trigger selection dropdown.- - aiAct: Choose Record a shortcut… in the trigger selection dropdown.- - aiWaitFor:- prompt: The active trigger and trigger dropdown both show the control symbol ⌃ plus F8.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The active and selected trigger is the custom shortcut ⌃ plus F8.- - aiAct: Continue to Voice test and then return to Trigger key.- - aiWaitFor:- prompt: Trigger key is visible again and still shows the custom shortcut.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The Trigger key page still shows ⌃ plus F8 as both the active and selected trigger.+ - aiAssert: The Trigger key page shows Active trigger fn and a trigger selection dropdown.+ - aiTap: Trigger selection dropdown showing fn+ - aiTap: Record a shortcut… option in the open trigger selection dropdown+ - wait: { duration: 750 }+ - aiAssert: The active trigger now shows the control symbol ⌃ plus F8, and the trigger dropdown displays that same custom shortcut.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current step is Voice test.+ - aiTap: Left-arrow Previous button in the fixed top navigation+ - aiAssert: The Trigger key page still shows the custom ⌃ plus F8 shortcut as the active and selected trigger.diff --git a/tests/e2e/cases/onboarding.yaml b/tests/e2e/cases/onboarding.yamlindex a55f1e2..676d90c 100644--- a/tests/e2e/cases/onboarding.yaml+++ b/tests/e2e/cases/onboarding.yaml@@ -3,48 +3,38 @@ cases:tags: [shard-1]steps:- aiAssert: The visible Doubao Say window is on Sign in and says the user is not signed in.- - aiAct: Open the CI-only Doubao sign-in window.- - aiWaitFor:- prompt: The CI-only Synthetic Doubao sign-in window is visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The Synthetic Doubao sign-in window explicitly says it is CI-only, makes no network request, and uses no real credentials.- - aiAct: Simulate a successful sign-in.- - aiWaitFor:- prompt: The synthetic sign-in window is closed and Doubao Say is on the Microphone step.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The Microphone step shows Check microphone · 3 seconds and the right-arrow Next button in the fixed top navigation.- - aiAct: Run Check microphone · 3 seconds.- - aiWaitFor:- 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 visible microphone result says Microphone is working.- - aiAct: Continue to Trigger key and reveal the Voice polishing model guidance.- - aiWaitFor:- prompt: The Trigger key page is visible and the complete Voice polishing model guidance can be read.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The model guidance recommends a small, fast model with thinking off, names DeepSeek Flash and Gemini 2.5 Flash-Lite, and warns that large reasoning models may exceed five seconds and fall back to the original text.- - aiAct: Test the Voice polishing endpoint.- - aiWaitFor:- prompt: The Voice polishing result says Endpoint works and includes Synthetic endpoint response.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The visible endpoint result says Endpoint works and includes Synthetic endpoint response.- - aiAct: Continue to Voice test.- - aiWaitFor:- prompt: The Voice test page is visible and Start voice test is available.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The Voice test heading and introductory text are clearly visible, and Start voice test is available.- - aiAct: Start the voice test.- - aiWaitFor:- prompt: Synthetic voice test transcript is visible, and both Finish & check result and Cancel test are available.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }+ - aiAct: Scroll inside the Sign in content panel until Open Doubao sign-in is fully visible.+ - aiTap: Open Doubao sign-in button in the Sign in content panel+ - wait: { duration: 1500 }+ - aiAssert: A Synthetic Doubao sign-in window is visible and explicitly says it is CI-only, makes no network request, and uses no real credentials.+ - aiTap: Simulate successful sign-in button in the Synthetic Doubao sign-in window+ - aiAssert: The synthetic sign-in window closed and Doubao Say automatically advanced to the Microphone step with a right-arrow Next button in the fixed top navigation.+ - aiTap: Check microphone · 3 seconds button on the Microphone step+ - wait: { duration: 750 }+ - aiAssert: A visible message says Microphone is working and instructs the user to continue to the trigger key step.+ - aiTap: Right-arrow Next button in the Doubao Say fixed top navigation+ - aiAssert: The current Doubao Say step is Trigger key.+ - aiAct: Stay on Trigger key. Scroll downward exactly once inside the light-gray central content panel, then stop.+ - aiAct: Scroll downward exactly once more inside the same central content panel, then stop.+ - aiAct: Scroll inside the central content panel until the full model guidance, from Choose a small, fast model through fall back to your original text, is visible.+ - aiAssert: The model guidance is readable and recommends a small, fast model with thinking off, names DeepSeek Flash and Gemini 2.5 Flash-Lite, and warns that large reasoning models may exceed five seconds and fall back to the original text.+ - aiAct: Scroll downward inside the central content panel until the Test endpoint button is fully visible.+ - aiAssert: The visible Test endpoint button is fully visible and enabled.+ - aiTap: Test endpoint button in the visible Voice polishing section+ - wait: { duration: 750 }+ - aiAct: If needed, scroll down slightly inside the central content panel until Synthetic endpoint response is visible below Endpoint works. Keep both results on screen.+ - aiAssert: A visible message says the endpoint works and includes Synthetic endpoint response.+ - aiTap: Right-arrow Next button in the fixed top navigation+ - aiAssert: The current Doubao Say step is Voice test.+ - aiAssert: The Voice test heading and introductory text are clearly visible near the top of the current content panel.+ - aiTap: Start voice test button in the Voice test content panel+ - wait: { duration: 750 }- aiAssert: The Voice test shows Synthetic voice test transcript and offers both Finish & check result and Cancel test.- - aiAct: Finish the active voice test and check its result.- - aiWaitFor:- prompt: The Listening overlay is gone and the visible feedback says Voice test passed and nothing was pasted or sent.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: Start voice test is available again, and the visible feedback says Voice test passed and nothing was pasted or sent.- - aiAct: Activate the enabled Finish setup control whose label says Voice test passed and nothing pasted or sent.- - aiWaitFor:- prompt: The setup control is disabled and says Setup completed by the synthetic E2E fixture.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The visible disabled setup control says Setup completed by the synthetic E2E fixture.+ - aiTap: Finish & check result button in the Voice test content panel+ - wait: { duration: 1250 }+ - aiAssert: The Listening overlay is gone, Start voice test is available, and the visible feedback says Voice test passed and nothing was pasted or sent.+ - aiAct: Scroll to the bottom of the Voice test content panel until the Finish setup button is fully visible. Do not stop at the Start voice test button.+ - aiAssert: The Finish setup button is fully visible and enabled, and the confirmation says Voice test passed and nothing was pasted or sent.+ - aiTap: Enabled setup button that says Voice test passed in the Voice test content panel+ - wait: { duration: 500 }+ - aiAssert: The Finish setup button changed to a disabled visible status saying Setup completed by the synthetic E2E fixture.diff --git a/tests/e2e/cases/polishing.yaml b/tests/e2e/cases/polishing.yamlindex aeaa4f2..36ac9e2 100644--- a/tests/e2e/cases/polishing.yaml+++ b/tests/e2e/cases/polishing.yaml@@ -1,19 +1,17 @@cases:- name: Polishing status stays separate from synthetic transcriptsteps:- - aiAct: Start English polishing in the test controls window.+ - aiTap: Start English polishing button in the Polishing overlay test controls window- aiAssert: A separate dark overlay shows Polishing at the upper left and three stars at the upper right. The transcript Please send the notes tomorrow. is below with clear space separating it from the status. No horizontal divider line appears inside the overlay.- - aiWaitFor:- prompt: The overlay displays Press shortcut again to use original as a smaller secondary hint below the transcript.- options: { timeoutMs: 10000, checkIntervalMs: 1000 }+ - wait: { duration: 3500 }- aiAssert: The overlay displays Press shortcut again to use original as a smaller secondary hint below the transcript.- - aiAct: Stream the revised text in the test controls window.+ - aiTap: Stream revised text button in the test controls window- aiAssert: The overlay transcript now reads Please send the meeting notes tomorrow. The Polishing status and stars remain in their own row above the transcript.- - aiAct: Start Chinese polishing in the test controls window.+ - aiTap: Start Chinese polishing button in the test controls window- aiAssert: The dark overlay displays 润色中 in its status row and 请明天发送会议纪要。 as separate text below, with three stars at the upper right and no horizontal divider.- - aiAct: Start reduced motion in the test controls window.+ - aiTap: Start reduced motion button in the test controls window- aiAssert: The overlay shows English Polishing status, three clearly visible stars, and the separate transcript Please send the notes tomorrow.- - aiAct: Finish polishing in the test controls window.+ - aiTap: Finish polishing button in the test controls window- aiAssert: Within the dark transcript overlay, the status reads Polished - Sending text and its top-right status row no longer contains the three small polishing star icons. Ignore the desktop wallpaper and any system logo outside the dark overlay.- - aiAct: Hide the overlay in the test controls window.+ - aiTap: Hide overlay button in the test controls window- aiAssert: The dark transcript overlay is gone. The Polishing overlay test controls window remains visible.diff --git a/tests/e2e/cases/runtime.yaml b/tests/e2e/cases/runtime.yamlindex bbb2f63..005a8fe 100644--- a/tests/e2e/cases/runtime.yaml+++ b/tests/e2e/cases/runtime.yaml@@ -5,36 +5,24 @@ cases:- fixture.prepare: { mode: runtime-delivery }- aiAssert: A Synthetic dictation target window is focused, its text field is empty, and the status says Idle with 0 deliveries.- computer.keyPress: { keyName: F8 }- - aiWaitFor:- prompt: A dark Doubao Say overlay says Listening to synthetic speech and shows Synthetic dictation is ready to deliver.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The listening overlay is visible and the target field remains empty.+ - wait: { duration: 1000 }+ - aiAssert: A dark Doubao Say overlay visibly says Listening to synthetic speech and shows Synthetic dictation is ready to deliver; the target field remains empty.- computer.keyPress: { keyName: F8 }- - aiWaitFor:- prompt: The overlay is gone and the target field contains Synthetic dictation delivered exactly once.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The target field contains exactly Synthetic dictation delivered exactly once, and the status says Delivered once with 1 delivery.+ - wait: { duration: 1200 }+ - aiAssert: The overlay is gone, the target field contains exactly Synthetic dictation delivered exactly once, and the status says Delivered once with 1 delivery.- name: Cancel synthetic dictation without delivering texttags: [shard-4]steps:- fixture.prepare: { mode: runtime-cancel }- aiAssert: A Synthetic dictation target window is focused, its text field is empty, and the status says Idle with 0 deliveries.- computer.keyPress: { keyName: F8 }- - aiWaitFor:- prompt: The recording overlay is visible and the target field is still empty.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }+ - wait: { duration: 1000 }- aiAssert: The recording overlay is visible and the target field is still empty.- computer.keyPress: { keyName: Escape }- - aiWaitFor:- prompt: The overlay is gone and the status says Cancelled, no text delivered, and ready to try again.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: The target field remains empty and the status says Cancelled, no text delivered, and ready to try again.+ - wait: { duration: 1000 }+ - aiAssert: The overlay is gone, the target field remains empty, and the status says Cancelled, no text delivered, and ready to try again.- computer.keyPress: { keyName: F8 }- - aiWaitFor:- prompt: A new recording overlay is visible.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }+ - wait: { duration: 1000 }- computer.keyPress: { keyName: F8 }- - aiWaitFor:- prompt: The new attempt has delivered exactly one synthetic sentence and the status reports 1 delivery.- options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiAssert: A new attempt succeeded with exactly one delivered synthetic sentence and the status reports 1 delivery.+ - wait: { duration: 1200 }+ - aiAssert: A new attempt succeeds with exactly one delivered synthetic sentence and the status reports 1 delivery.diff --git a/tests/e2e/midscene.config.ts b/tests/e2e/midscene.config.tsindex 35ce810..e6cf59a 100644--- a/tests/e2e/midscene.config.ts+++ b/tests/e2e/midscene.config.ts@@ -92,7 +92,7 @@ const setup = defineProjectSetup<DesktopContext>({aiContexts: shell? { aiAssert: 'Inspect the real Omarchy desktop through VNC. Judge only visible pixels; do not infer success from commands or configuration.' }: polishing ? { aiAct: 'Test the native polishing overlay using the separate Polishing overlay test controls window. Use visible button labels.' }- : { aiAct: `Test the English Doubao Say GTK onboarding window${omarchy ? ' inside a real Omarchy VM shown through VNC' : ''}. Interact only with Doubao Say and use visible labels.` },+ : { aiAct: `Test the English Doubao Say GTK onboarding window${omarchy ? ' inside a real Omarchy VM shown through VNC' : ''}. Interact only with Doubao Say and use visible labels. Perform the minimum requested interaction, then finish the task immediately. Never repeat a completed click or scroll.` },});desktopReady = true;return agent;