Doubao-powered voice input for Linux, Wayland and Omarchy
test: fix signed-in navigation and final shell retry evidence
quanrub817a508e1ca
diff --git a/scripts/omarchy-shell-evidence.mjs b/scripts/omarchy-shell-evidence.mjsindex 230c833..35fb4e1 100644--- a/scripts/omarchy-shell-evidence.mjs+++ b/scripts/omarchy-shell-evidence.mjs@@ -178,14 +178,21 @@ export function extractShellEvidence(for (const dump of reportDumps(html)) {for (const execution of dump.executions ?? []) {for (const task of execution.tasks ?? []) {- if (task.status !== 'finished' || task.subType !== 'Assert') continue;+ if (+ task.status !== 'finished' ||+ task.subType !== 'Assert' ||+ typeof task.output !== 'boolean'+ ) continue;finished.push(task);}}}return SHELL_CHECKS.map((check, index) => {- const task = finished[index];+ // The report embeds assertions from every retry. A successful shell case+ // contributes the final three assertions; earlier failed attempts must not+ // displace them in the post-run visual verifier.+ const task = finished.slice(-SHELL_CHECKS.length)[index];if (!task) {if (allowIncomplete)return { ...check, passed: false, screenshot: null, missing: true };diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjsindex df25cb1..5b120fb 100644--- a/tests/contracts/test_pages_report_history.mjs+++ b/tests/contracts/test_pages_report_history.mjs@@ -166,7 +166,8 @@ test('keeps visual E2E interactions at task level with proven tap exceptions', a'- 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',- '- aiTap: Left-arrow Previous button in the fixed top navigation',+ '- 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 }',@@ -1699,6 +1700,24 @@ test('finds Omarchy evidence by project instead of assertion wording', async ());});+test('uses the successful Omarchy retry instead of failed earlier assertions', async () => {+ const root = await mkdtemp(path.join(os.tmpdir(), 'shell-retry-'));+ const reportDirectory = path.join(root, 'report');+ await mkdir(reportDirectory, { recursive: true });+ const failedAttempt = `<script type="midscene_web_dump">${JSON.stringify({+ executions: [true, false].map((output) => ({+ tasks: [{ status: 'finished', subType: 'Assert', output }],+ })),+ })}</script>`;+ await writeFile(+ path.join(reportDirectory, 'test-run-shell.html'),+ shellFixtureHtml.replace('<body>', `<body>${failedAttempt}`),+ );++ const report = await findShellReport(root);+ assert.deepEqual(report.checks.map(({ passed }) => passed), [true, true, true]);+});+test('reads Midscene Test 1.13.0 node screenshots from the screenshots directory', async () => {const root = await mkdtemp(path.join(os.tmpdir(), 'directory-shots-'));const reportDirectory = path.join(diff --git a/tests/e2e/cases/onboarding-regressions.yaml b/tests/e2e/cases/onboarding-regressions.yamlindex f6f07d1..0edf3e9 100644--- a/tests/e2e/cases/onboarding-regressions.yaml+++ b/tests/e2e/cases/onboarding-regressions.yaml@@ -32,12 +32,12 @@ cases:- aiWaitFor:prompt: The sign-in window is closed and Doubao Say has advanced to the Microphone step.options: { timeoutMs: 30000, checkIntervalMs: 1000 }- - aiTap: Left-arrow Previous button in the fixed top navigation+ - computer.tapPoint: { target: Left-arrow Previous button in the fixed top navigation, point: { x: 240, y: 203 } }- 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.+ - computer.tapPoint: { target: Right-arrow Next button in the fixed top navigation, point: { x: 1038, y: 203 } }- aiWaitFor:prompt: The Microphone step shows Let's make sure we can hear you.options: { timeoutMs: 30000, checkIntervalMs: 1000 }