fix(knowledge): bind summary cards to cited evidence
This commit is contained in:
@@ -286,13 +286,20 @@ test('超大字模式下今日安排将文字和操作按钮纵向排布', async
|
||||
});
|
||||
|
||||
test('问师傅页保留搜索框、答案区和总结卡入口', async () => {
|
||||
const source = await pageSource('../src/pages/user/sop/index.vue');
|
||||
const [source, service] = await Promise.all([
|
||||
pageSource('../src/pages/user/sop/index.vue'),
|
||||
pageSource('../src/services/knowledge.ts')
|
||||
]);
|
||||
|
||||
assert.match(source, /query-panel/);
|
||||
assert.match(source, /answer-panel/);
|
||||
assert.match(source, /summary-panel/);
|
||||
assert.match(source, /MY_PRACTICE_SUMMARY/);
|
||||
assert.match(source, /TEAM_PRACTICE_SUMMARY/);
|
||||
assert.match(source, /const summaryFragmentIds = \(msg: MasterMsg\)/);
|
||||
assert.match(source, /generateSummaryCard\(\{ queryText: value, fragmentIds \}\)/);
|
||||
assert.match(service, /fragmentIds: number\[\]/);
|
||||
assert.match(service, /fragmentIds: params\.fragmentIds/);
|
||||
});
|
||||
|
||||
test('SOP 没解决先收集结构化原因再提交', async () => {
|
||||
|
||||
Reference in New Issue
Block a user