Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

test(e2e): scroll trigger guidance deterministically

quanru0691886113e5
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjs
index 881ac66..f3073d2 100644
--- a/tests/contracts/test_pages_report_history.mjs
+++ b/tests/contracts/test_pages_report_history.mjs
@@ -142,7 +142,7 @@ test('keeps visual E2E interactions at task level with proven aiTap exceptions',
'utf8',
);
const oneShotActions = source.match(
- /^\s+-\s+(?:aiTap|aiScroll|aiInput|computer\.inputText):.+$/gm,
+ /^\s+-\s+(?:aiTap|aiScroll|aiInput|computer\.inputText):.*$/gm,
) ?? [];
assert.deepEqual(
oneShotActions.map((line) => line.trim()),
@@ -152,6 +152,7 @@ test('keeps visual E2E interactions at task level with proven aiTap exceptions',
'- 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: Right-arrow Next button in the fixed top navigation',
]
: file === 'onboarding-regressions.yaml'
diff --git a/tests/e2e/cases/onboarding.yaml b/tests/e2e/cases/onboarding.yaml
index 97c15d5..755824d 100644
--- a/tests/e2e/cases/onboarding.yaml
+++ b/tests/e2e/cases/onboarding.yaml
@@ -18,7 +18,10 @@ cases:
options: { timeoutMs: 30000, checkIntervalMs: 1000 }
- aiAssert: The visible microphone result says Microphone is working.
- aiTap: Right-arrow Next button in the fixed top navigation
- - aiAct: Reveal the complete Voice polishing model guidance on the Trigger key page.
+ - aiScroll:
+ direction: down
+ scrollType: singleAction
+ distance: 500
- aiWaitFor:
prompt: The Trigger key page is visible and the complete Voice polishing model guidance can be read.
options: { timeoutMs: 30000, checkIntervalMs: 1000 }