Skip to content

Commit 4bc428a

Browse files
committed
ci: stabilize Midscene navigation
1 parent 0fa2b2a commit 4bc428a

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎tests/midscene/e2e/onboarding.test.ts‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ describe('Doubao Say onboarding', () => {
9898
);
9999

100100
await agent.aiAct(
101-
'Click the Next button in the fixed top navigation and wait until the current step is Trigger key.',
101+
'Click Next in the fixed top navigation exactly once, then stop immediately. ' +
102+
'Do not click Next a second time and do not wait for or verify the page transition.',
103+
);
104+
await agent.aiAct(
105+
'Verify the current Doubao Say step is Trigger key. Do not click Previous or Next.',
102106
);
103107
await agent.aiAct(
104108
'Stay on the Trigger key step and do not click Previous or Next. Scroll down inside the light-gray central content panel until the Voice polishing heading and its controls are visible.',
@@ -111,13 +115,20 @@ describe('Doubao Say onboarding', () => {
111115
);
112116

113117
await agent.aiAct(
114-
'Click the Next button in the fixed top navigation and wait for the Voice test step.',
118+
'Click Next in the fixed top navigation exactly once, then stop immediately. ' +
119+
'Do not click Next a second time and do not wait for or verify the page transition.',
120+
);
121+
await agent.aiAct(
122+
'Verify the current Doubao Say step is Voice test. Do not click Previous or Next.',
115123
);
116124
await agent.aiAct(
117125
'Verify the Voice test heading and its introductory text are visible near the top of the content, showing that the page did not remain scrolled to the bottom.',
118126
);
119127
await agent.aiAct(
120-
'Scroll within the content if needed and click the Finish setup button.',
128+
'Scroll within the current Voice test content if needed and click Finish setup exactly once. ' +
129+
'The click is successful when that same button changes to the disabled status ' +
130+
'Setup completed by the synthetic E2E fixture. When that status appears, stop immediately, ' +
131+
'do not search for Finish setup again, and do not click Previous or Next.',
121132
);
122133
await agent.aiAct(
123134
'Verify the Finish setup button changed to a disabled visible status saying Setup completed by the synthetic E2E fixture.',

0 commit comments

Comments
 (0)