fix(practice): generate replies from coach hints
This commit is contained in:
@@ -341,6 +341,19 @@ test('训练页保留任务卡、对话区、回复区和结果区并互斥切
|
||||
assert.match(source, /result\.mentorRewrite/);
|
||||
});
|
||||
|
||||
test('老师傅提示由 LLM 生成可发送回复后再填入输入框', async () => {
|
||||
const [source, service] = await Promise.all([
|
||||
pageSource('../src/pages/user/practice/index.vue'),
|
||||
pageSource('../src/services/practice.ts')
|
||||
]);
|
||||
|
||||
assert.match(source, /suggestReply:\s*true/);
|
||||
assert.match(source, /data\.suggestedReply/);
|
||||
assert.match(source, /setDraft\(value\)/);
|
||||
assert.doesNotMatch(source, /const adoptCoachHint[\s\S]{0,300}setDraft\(\(turn\.text/);
|
||||
assert.match(service, /suggestReply\?:\s*boolean/);
|
||||
});
|
||||
|
||||
test('底部固定导航页面复用安全操作区', async () => {
|
||||
const [base, practice, assign, review] = await Promise.all([
|
||||
pageSource('../src/styles/base.css'),
|
||||
|
||||
Reference in New Issue
Block a user