Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

test(e2e): stabilize voice-test navigation

quanru3f0ae7fc2cd0
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjs
index a74e55d..1f4f523 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 with one proven aiTap exception', async () => {
+test('keeps visual E2E interactions at task level with proven aiTap exceptions', async () => {
for (const file of [
'onboarding.yaml',
'onboarding-regressions.yaml',
@@ -147,9 +147,12 @@ test('keeps visual E2E interactions at task level with one proven aiTap exceptio
assert.deepEqual(
oneShotActions.map((line) => line.trim()),
file === 'onboarding.yaml'
- ? ['- aiTap: Check microphone · 3 seconds button on the Microphone step']
+ ? [
+ '- aiTap: Check microphone · 3 seconds button on the Microphone step',
+ '- aiTap: Right-arrow Next button in the fixed top navigation',
+ ]
: [],
- `${file} must express visual interactions as task-level aiAct steps except for the proven microphone-check failure`,
+ `${file} must express visual interactions as task-level aiAct steps except for proven failures`,
);
assert.doesNotMatch(
source,
diff --git a/tests/e2e/cases/onboarding.yaml b/tests/e2e/cases/onboarding.yaml
index f9070ca..861ff53 100644
--- a/tests/e2e/cases/onboarding.yaml
+++ b/tests/e2e/cases/onboarding.yaml
@@ -28,7 +28,7 @@ cases:
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.
+ - aiTap: Right-arrow Next button in the fixed top navigation
- aiWaitFor:
prompt: The Voice test page is visible and Start voice test is available.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }