Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

Merge main into Midscene upgrade branch

quanru250ce275f444
diff --cc .github/workflows/midscene-ubuntu-22.04.yml
index d351507,20300f4..9570dad
--- a/.github/workflows/midscene-ubuntu-22.04.yml
+++ b/.github/workflows/midscene-ubuntu-22.04.yml
@@@ -1,14 -1,45 +1,27 @@@
name: Ubuntu 22.04
run-name: Ubuntu 22.04
+# TEMPORARILY DISABLED (2026-09): the Volcengine Ark endpoint backing
+# MIDSCENE_MODEL_* is rate-limited to ~25-35 RPM, so the parallel visual
+# fleet exhausts its quota. Only the Omarchy visual workflow runs on
+# push/PR while quotas are being raised; this suite stays available via
+# "Run workflow". To restore automatic runs, replace this trigger block
+# with the previous push/pull_request block from git history.
on:
- push:
- branches: [main]
- paths: &e2e-paths
- - ".github/workflows/midscene-ubuntu-22.04.yml"
- - ".github/workflows/deploy-midscene-report.yml"
- - "scripts/build-pages-report.mjs"
- - "scripts/report-cases.mjs"
- - "scripts/render-ci-report-summary.mjs"
- - "scripts/write-ci-shard-status.mjs"
- - "scripts/verify-pages-report.mjs"
- - "tests/contracts/test_pages_report_history.mjs"
- - "tests/e2e/package.json"
- - "tests/e2e/package-lock.json"
- - "tests/e2e/gtk_fixture.py"
- - "tests/e2e/gtk_onboarding_fixture.py"
- - "tests/e2e/gtk_runtime_fixture.py"
- - "tests/e2e/capture-report-preview.mjs"
- - "tests/e2e/polish_fixture.py"
- - "tests/e2e/cases/**"
- - "tests/e2e/midscene.config.ts"
- - "src/**"
- pull_request:
- branches: [main]
- paths: *e2e-paths
workflow_dispatch:
+ inputs:
+ project:
+ description: Run one Midscene project for focused verification
+ type: choice
+ default: all
+ options:
+ - all
+ - ubuntu-shard-1
+ - ubuntu-shard-2
+ - ubuntu-shard-3
+ - ubuntu-shard-4
+ - ubuntu-polishing
+ - ubuntu-providers
permissions:
contents: read
diff --cc tests/contracts/test_pages_report_history.mjs
index 9981a61,5b2ddff..4bc9aba
--- a/tests/contracts/test_pages_report_history.mjs
+++ b/tests/contracts/test_pages_report_history.mjs
@@@ -130,113 -133,6 +133,117 @@@ test('assigns every product case to exa
});
});
+test('keeps visual E2E interactions at task level with proven tap exceptions', async () => {
+ for (const file of [
+ 'onboarding.yaml',
+ 'onboarding-regressions.yaml',
+ 'polishing.yaml',
+ 'runtime.yaml',
+ ]) {
+ const source = await readFile(
+ new URL(`../e2e/cases/${file}`, import.meta.url),
+ 'utf8',
+ );
+ const oneShotActions = source.match(
+ /^\s+-\s+(?:aiTap|aiScroll|aiInput|computer\.inputText|computer\.tapPoint|computer\.selectTriggerPreset):.*$/gm,
+ ) ?? [];
+ assert.deepEqual(
+ oneShotActions.map((line) => line.trim()),
+ file === 'onboarding.yaml'
+ ? [
+ '- 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: Check microphone · 3 seconds button on the Microphone step',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
+ '- aiScroll:',
+ '- aiTap: Test endpoint button in the Voice polishing section',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
+ '- aiTap: Start voice test button',
+ '- aiTap: Finish & check result button',
+ '- aiTap: Enabled Finish setup button that says Voice test passed and nothing pasted or sent',
+ ]
+ : file === 'onboarding-regressions.yaml'
+ ? [
+ '- 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 blue Simulate successful sign-in button in the CI-only modal, around 50% width and 43% screen height',
+ '- computer.tapPoint: { target: Left-arrow Previous button in the fixed top navigation, point: { x: 240, y: 203 } }',
+ '- computer.tapPoint: { target: Right-arrow Next button in the fixed top navigation, point: { x: 1038, y: 203 } }',
+ '- computer.selectTriggerPreset: { preset: Disabled }',
+ '- computer.tapPoint: { target: Right-arrow Next button in the fixed top navigation, point: { x: 1038, y: 203 } }',
+ '- computer.selectTriggerPreset: { preset: F8 }',
+ '- computer.tapPoint: { target: Right-arrow Next button in the fixed top navigation, point: { x: 1038, y: 203 } }',
+ '- computer.tapPoint: { target: Left-arrow Previous button in the fixed top navigation, point: { x: 240, y: 203 } }',
+ '- aiScroll:',
+ '- computer.tapPoint: { target: Enabled Voice polishing switch, point: { x: 1180, y: 316 } }',
+ '- computer.tapPoint: { target: Disabled Voice polishing switch in the collapsed card, point: { x: 1166, y: 554 } }',
+ '- aiScroll:',
+ '- 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:',
+ '- computer.tapPoint: { target: Left-arrow Previous button in the fixed top navigation, point: { x: 240, y: 203 } }',
+ '- aiTap: Check microphone · 3 seconds button on the Microphone step',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
+ '- aiScroll:',
+ '- aiTap: Start voice test button in the Voice test section',
+ '- aiTap: Cancel test button in the active voice test',
+ '- aiTap: Start voice test button in the Voice test section',
+ '- aiTap: Finish & check result button in the active voice test',
+ '- aiTap: The Recognition service dropdown currently showing Doubao account',
+ '- aiTap: Volcengine API option in the open Recognition service dropdown',
+ '- aiTap: Test API key button on the Recognition step',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
++ '- aiTap: Recognition service dropdown currently showing Doubao account',
++ '- aiTap: Deepgram Nova-3 (English) option in the opened dropdown',
++ '- computer.inputText:',
++ '- aiTap: Test API key button below the API Key field',
+ '- 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',
+ '- aiScroll:',
+ '- aiTap: Left-arrow Previous button in the fixed top navigation',
+ '- aiTap: Check microphone · 3 seconds button on the Microphone step',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
+ '- aiScroll:',
+ '- aiTap: The trigger selection dropdown currently showing fn',
+ '- aiTap: Record a shortcut… option in the open trigger selection dropdown',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
+ '- aiTap: Left-arrow Previous button in the fixed top navigation',
+ ]
+ : [],
+ `${file} must express visual interactions as task-level aiAct steps except for proven failures`,
+ );
+ assert.doesNotMatch(
+ source,
+ /^\s+-\s+wait:/gm,
+ `${file} must wait for a visible state with aiWaitFor instead of sleeping`,
+ );
+ }
+});
+
+test('captures both legacy and current Midscene report step lists', async () => {
+ const source = await readFile(
+ new URL('../e2e/capture-report-preview.mjs', import.meta.url),
+ 'utf8',
+ );
+ assert.match(
+ source,
+ /\.runner-detail-step-group > button, .*\.runner-detail-step-list > button/,
+ );
+ assert.match(
+ source,
+ /\.runner-detail-step-group > button\.is-selected, .*\.runner-detail-step-list > button\.is-selected/,
+ );
+ assert.match(source, /waitUntil: 'domcontentloaded'/);
+ assert.match(source, /timeout: 120_000/);
+});
+
function runnerScript({
assertionCount = 0,
assertionAttempts,
diff --cc tests/e2e/cases/onboarding-regressions.yaml
index dd1409e,9415fa3..0c8e599
--- a/tests/e2e/cases/onboarding-regressions.yaml
+++ b/tests/e2e/cases/onboarding-regressions.yaml
@@@ -170,27 -164,33 +170,43 @@@ 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: In Recognition service, select Volcengine API exactly once.
- - 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: 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.
+ - 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.
+ - 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 }
+ - aiAssert: The accepted API key result and official API ready state are both visible.
- 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.
+ - 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: [shard-3, provider]
+ steps:
+ - fixture.prepare: { mode: deepgram }
+ - aiTap: Recognition service dropdown currently showing Doubao account
+ - aiTap: Deepgram Nova-3 (English) option in the opened 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 Recognition, explains Deepgram Nova-3 English dictation, shows an empty API Key field, and hides Open Doubao sign-in.
+ - computer.inputText:
+ target: API Key field
+ value: synthetic-deepgram-key
+ - aiTap: Test API key button below the API Key field
- - wait: { duration: 750 }
- - aiAssert: The result says API key accepted by synthetic endpoint and the page reports that the speech API is ready.
++ - 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
tags: [shard-2]
steps:
diff --cc tests/e2e/midscene.config.ts
index fee623a,907f82e..92d9173
--- a/tests/e2e/midscene.config.ts
+++ b/tests/e2e/midscene.config.ts
@@@ -200,9 -195,9 +200,10 @@@ const empty = z.strictObject({})
const fixtureMode = z.strictObject({
mode: z.enum([
'microphone-gate',
+ 'trigger-settings',
'voice-test',
'volcengine',
+ 'deepgram',
'microphone-change',
'shortcut-capture',
'runtime-delivery',