feat: add project-scoped work assistant results
This commit is contained in:
@@ -29,3 +29,29 @@ test('问师傅支持显式新对话、版本回写和受控原文件或视频
|
||||
assert.match(page, /msg\.result\.rewrittenQuery !== msg\.result\.queryText/);
|
||||
assert.match(page, /已结合本次对话理解/);
|
||||
});
|
||||
|
||||
test('工作助手按项目名称选择并为文字、媒体和工具请求携带项目上下文', async () => {
|
||||
const [page, service, auth] = await Promise.all([
|
||||
read('../src/pages/user/sop/index.vue'),
|
||||
read('../src/services/knowledge.ts'),
|
||||
read('../src/services/auth.ts')
|
||||
]);
|
||||
|
||||
assert.match(page, />当前项目</);
|
||||
assert.match(page, /选择当前项目/);
|
||||
assert.match(page, /搜索项目名称/);
|
||||
assert.match(page, /saveCurrentProject\(project\)/);
|
||||
assert.match(page, /resetConversation\(false\)/);
|
||||
assert.match(page, /currentProject\.value\?\.projectCode/);
|
||||
assert.match(service, /projectCode/);
|
||||
assert.match(auth, /aihr_mobile_current_project:\$\{tenantId/);
|
||||
assert.match(auth, /reconcileCurrentProject/);
|
||||
});
|
||||
|
||||
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\)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user