fix(mobile): complete SOP focus regression

This commit is contained in:
2026-07-17 04:29:32 +08:00
parent 0745d51e57
commit 5d82ff7b21
4 changed files with 9 additions and 7 deletions
@@ -45,6 +45,7 @@ test('训练结果回到顶部,SOP 答案生成后定位到回答区', async (
]);
assert.match(practiceSource, /result\.value = await finishPractice\([\s\S]*?resetPageScroll\(\)/);
assert.match(sopSource, /import \{ resetPageScroll, scrollPageToSelector \} from '@\/services\/navigation';/);
assert.match(sopSource, /result\.value = await searchKnowledge\(value\);\s*scrollPageToSelector\('\.answer-panel'/);
assert.match(navigationSource, /export const scrollPageToSelector = \(selector: string/);
});