Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

19.1 KB
Raw Blame
cases:
  - name: Cancel sign-in and retry
    steps:
      - aiAssert: The current step is Sign in, the page says Not signed in, and the large blue Open Doubao sign-in button is visible.
      - 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 modal titled CI-ONLY SYNTHETIC DOUBAO SIGN-IN is visible and says it makes no network request and uses no real credentials.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - 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.
      - 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 again.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: The blue Simulate successful sign-in button in the CI-only modal, around 50% width and 43% screen height
      - aiWaitFor:
          prompt: The Doubao Say page heading says Microphone and the page offers Check microphone · 3 seconds.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAssert: The visible Doubao Say page is the Microphone step with Synthetic microphone one selected.

  - name: Preserve signed-in account across backward navigation
    steps:
      - aiAssert: The visible Doubao Say window starts on the Sign in step and says the user is not signed in.
      - 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
      - aiAssert: The synthetic sign-in window says it makes no network request and uses no real credentials.
      - aiTap: The blue Simulate successful sign-in button in the CI-only modal, around 50% width and 43% screen height
      - aiWaitFor:
          prompt: The Doubao Say page heading says Microphone and the page offers Check microphone · 3 seconds.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Left-arrow Previous button in the fixed top navigation
      - 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.
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: The Microphone step shows Let's make sure we can hear you.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }

  - name: Require an enabled trigger and retain the replacement
    steps:
      - fixture.prepare: { mode: trigger-settings }
      - aiAssert: The Trigger key step shows Choose how to start speaking and Voice polishing is enabled.
      - computer.selectTriggerPreset: { preset: Disabled }
      - aiAssert: Active trigger says Disabled, and the Voice polishing switch remains enabled.
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: The current step is still Trigger key and the message Choose an enabled trigger to continue is visible.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - computer.selectTriggerPreset: { preset: F8 }
      - aiAssert: Active trigger shows F8 and F8 is selected in the trigger dropdown.
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: Voice test shows Try a sentence. Nothing gets pasted and the right-arrow Next button is disabled.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Left-arrow Previous button in the fixed top navigation
      - aiWaitFor:
          prompt: The Trigger key step is visible again.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAssert: The Trigger key step still shows Active trigger F8 and F8 is selected in the trigger dropdown.

  - name: Toggle polishing without losing configuration
    steps:
      - fixture.prepare: { mode: trigger-settings }
      - aiAct: Scroll within the Trigger key panel until the Voice polishing heading and its switch are fully visible. Do not change any settings.
      - aiTap: The blue enabled switch to the right of the Voice polishing heading
      - aiWaitFor:
          prompt: The Voice polishing switch is gray and off, and the text Voice polishing disabled. appears below it; the Base URL and Model inputs are not shown.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAssert: Voice polishing disabled. is visible and the polishing settings are collapsed.
      - aiTap: The gray disabled switch to the right of the Voice polishing heading
      - aiAssert: The Voice polishing switch is blue and on.
      - aiAct: Scroll within the Trigger key panel only if necessary to bring the Model text field fully into view. Do not change any settings.
      - aiAssert: The Model text field visibly reads synthetic-model.

  - name: Recover from an endpoint failure
    steps:
      - fixture.prepare: { mode: trigger-settings }
      - aiAct: Scroll within the Trigger key panel until the Model text field in Voice polishing is fully visible. Do not change any settings.
      - computer.inputText: { target: The editable text field to the right of Model containing synthetic-model, value: ci-fail-model }
      - aiAct: Scroll within the Trigger key panel only if necessary to bring the entire Test endpoint button into view above the fixed Vocabulary & history button.
      - aiTap: Test endpoint button in the Voice polishing section
      - aiAct: Scroll within the Trigger key panel only if necessary to reveal the endpoint result immediately below the test button.
      - aiWaitFor:
          prompt: The endpoint feedback contains Synthetic endpoint unavailable and the retry button says Test failed — try again.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAct: Scroll within the Trigger key panel only if necessary to bring the Model text field fully into view.
      - computer.inputText: { target: The editable text field to the right of Model containing ci-fail-model, value: ci-ok-model }
      - aiAct: Scroll within the Trigger key panel only if necessary to bring the entire Test failed — try again button into view above the fixed Vocabulary & history button.
      - aiTap: Test failed — try again button in the Voice polishing section
      - aiAct: Scroll within the Trigger key panel only if necessary to reveal the endpoint result immediately below the test button.
      - aiWaitFor:
          prompt: The endpoint result contains Synthetic endpoint response and the button says Endpoint works.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }

  - name: Microphone check gates setup completion
    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.
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: The current step is Trigger key and the active trigger is enabled.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - 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 }
      - aiAssert: The Finish setup button is visibly disabled.
      - aiTap: Left-arrow Previous button in the fixed top navigation
      - aiWaitFor:
          prompt: The current step is Trigger key.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Left-arrow Previous button in the fixed top navigation
      - aiWaitFor:
          prompt: The Microphone step and Check microphone · 3 seconds button are visible.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Check microphone · 3 seconds button on the Microphone step
      - 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.
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: The current step is Trigger key and the active trigger is enabled.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - 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 }
      - aiAssert: The Finish setup button is visibly enabled.

  - name: Complete and cancel a voice test safely
    steps:
      - fixture.prepare: { mode: voice-test }
      - 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.
      - aiTap: Start voice test button in the Voice test section
      - 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.
      - aiTap: Cancel test button in 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.
      - aiWaitFor:
          prompt: The cancelled voice-test result and the disabled Finish setup control are fully visible.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAssert: The Finish setup button is visibly disabled, and the voice-test feedback says Voice test cancelled and nothing was pasted or sent.
      - aiTap: Start voice test button in the Voice test section
      - aiWaitFor:
          prompt: Synthetic voice test transcript is visible and Finish & check result is available again.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Finish & check result button in the active voice test
      - 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.

  - name: Switch to Volcengine and validate credentials
    steps:
      - fixture.prepare: { mode: volcengine }
      - 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 }
      - 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. Then scroll down within the Recognition page until the Test API key button and the credential status below it are fully visible.
      - aiWaitFor:
          prompt: The API Key field is empty with the Saved — leave blank to keep placeholder, API key saved automatically is visible, and Test API key is enabled.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAssert: The API key saved automatically message is visible and the entry no longer contains the typed key.
      - aiTap: Test API key button on the Recognition step
      - 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 }
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: The Microphone step shows Let's make sure we can hear you.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }

  - name: Switch to Deepgram English recognition
    tags: [provider]
    steps:
      - fixture.prepare: { mode: deepgram }
      - aiAct: Switch the Recognition service from Doubao account to Deepgram Nova-3 (English).
      - aiWaitFor:
          prompt: The Recognition page shows Deepgram Nova-3 English dictation, and the API Key text entry with placeholder Enter speech API key is visible.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - computer.inputText:
          target: The empty masked text entry to the right of API Key, with placeholder Enter speech API key
          value: synthetic-deepgram-key
      - aiAct: Click Test API key to test the saved Deepgram key, scrolling within the Recognition page if needed. After the test completes, scroll down within the page to bring the result message below the button into view.
      - aiWaitFor:
          prompt: The API key is accepted by the synthetic endpoint and the speech API is ready.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAct: Switch the Recognition service to Volcengine API. Then scroll within the Recognition page until the API Key entry, Test API key button, and credential status beneath it are visible.
      - aiWaitFor:
          prompt: The Volcengine API credential instructions are visible, the empty API Key entry says Enter speech API key, and Test API key is disabled.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAssert: The page says no API key is saved for this service and does not show the previous accepted result.
      - aiAct: Keep the Recognition page open and scroll up within its content to find the Recognition service dropdown. Select Deepgram Nova-3 (English) in that dropdown. Then scroll down within the same page until the API Key entry and Test API key button are fully visible.
      - aiWaitFor:
          prompt: The Deepgram API credential instructions are visible, the empty API Key entry says Saved — leave blank to keep, and Test API key is enabled.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiAct: Click Test API key to test the saved Deepgram key again, scrolling within the Recognition page if needed. After the test completes, scroll down within the page to bring the result message below the button into view.
      - aiWaitFor:
          prompt: The API key is accepted by the synthetic endpoint and the speech API is ready.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }

  - name: Changing microphone requires another check
    steps:
      - fixture.prepare: { mode: microphone-change }
      - aiTap: The microphone dropdown currently showing Synthetic microphone one
      - aiTap: Synthetic microphone two option in the open microphone dropdown
      - aiWaitFor:
          prompt: The visible feedback says Microphone saved and requires a new three-second check.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: The current step is Trigger key and the active trigger is enabled.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - 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 }
      - aiAssert: The Finish setup button is visibly disabled.
      - aiTap: Left-arrow Previous button in the fixed top navigation
      - aiWaitFor:
          prompt: The current step is Trigger key.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Left-arrow Previous button in the fixed top navigation
      - aiWaitFor:
          prompt: The Microphone step and Check microphone · 3 seconds button are visible.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Check microphone · 3 seconds button on the Microphone step
      - 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.
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: The current step is Trigger key and the active trigger is enabled.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - 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 }
      - aiAssert: The Finish setup button is visibly enabled.

  - name: Capture and retain a custom trigger shortcut
    steps:
      - fixture.prepare: { mode: shortcut-capture }
      - aiTap: The trigger selection dropdown currently showing fn
      - aiTap: Record a shortcut… option in the open 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.
      - aiTap: Right-arrow Next button in the fixed top navigation
      - aiWaitFor:
          prompt: Voice test is visible.
          options: { timeoutMs: 30000, checkIntervalMs: 1000 }
      - aiTap: Left-arrow Previous button in the fixed top navigation
      - 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.