fix: show work capture context before actions

This commit is contained in:
2026-07-21 05:01:43 +08:00
parent 4536d607e3
commit 11250811a6
2 changed files with 28 additions and 3 deletions
+5 -1
View File
@@ -48,10 +48,14 @@ test('工作助手按项目名称选择并为文字、媒体和工具请求携
assert.match(auth, /reconcileCurrentProject/);
});
test('项目选择面板避开底栏且确认卡内容增长后重新滚到底部', async () => {
test('项目选择面板避开底栏,普通消息滚底且确认卡从识别结论处展示', async () => {
const page = await read('../src/pages/user/sop/index.vue');
assert.match(page, /inset:\s*0 0 var\(--window-bottom, 0px\)/);
assert.match(page, /let scrollSeq = 0/);
assert.match(page, /threadScrollTop\.value = 100000 \+ \(\+\+scrollSeq \* 200\)/);
assert.match(page, /:scroll-into-view="threadScrollIntoView"/);
assert.match(page, /:id="`chat-message-\$\{msg\.id\}`"/);
assert.match(page, /next\?\.role === 'master' && next\.result\.memoryCandidate/);
assert.match(page, /scrollToMessageStart\(id\)/);
});