fix(aihr): harden broadcast and mobile assistant flows
This commit is contained in:
@@ -7,10 +7,10 @@ const source = (path) => readFile(new URL(path, import.meta.url), 'utf8');
|
||||
test('工作上报首屏是语音优先会话,不再暴露传统表单主路径', async () => {
|
||||
const page = await source('../src/pages/user/report/index.vue');
|
||||
|
||||
assert.match(page, /工作上报/);
|
||||
assert.match(page, /数字师傅帮你整理/);
|
||||
assert.match(page, /我的上报/);
|
||||
assert.match(page, /今天处理了什么?按住说,也可以发照片或视频。/);
|
||||
assert.match(page, /成果投稿/);
|
||||
assert.match(page, /把好经验沉淀给公司复用/);
|
||||
assert.match(page, /我的投稿/);
|
||||
assert.match(page, /哪段处置经验值得公司复用?按住说,也可以发照片或视频,我会整理成案例、SOP 或知识投稿。/);
|
||||
assert.match(page, /<ChatComposer/);
|
||||
assert.doesNotMatch(page, /选择上报类型/);
|
||||
assert.doesNotMatch(page, /class="type-grid"/);
|
||||
@@ -71,7 +71,7 @@ test('确认卡允许修改最终类型标题正文且不承诺自动脱敏', as
|
||||
assert.doesNotMatch(page, /privacyReviewed/);
|
||||
assert.match(page, /editingDraft \? '完成修改' : '修改'/);
|
||||
assert.match(page, /@click="confirmSubmit"/);
|
||||
assert.match(page, /'确认上报'/);
|
||||
assert.match(page, /'确认投稿'/);
|
||||
assert.doesNotMatch(page, /自动隐藏/);
|
||||
assert.doesNotMatch(page, />继续补充<\/button>/);
|
||||
});
|
||||
@@ -122,7 +122,7 @@ test('AI 长草稿不被前端静默截断,改由确认时明确校验', async
|
||||
|
||||
assert.doesNotMatch(page, /String\(result\.content[\s\S]*?\.slice\(0, 2000\)/);
|
||||
assert.match(page, /content\.length > 2000/);
|
||||
assert.match(page, /上报内容不能超过2000字/);
|
||||
assert.match(page, /投稿内容不能超过2000字/);
|
||||
});
|
||||
|
||||
test('工作上报服务声明整理契约并在正式提交携带 requestId', async () => {
|
||||
|
||||
Reference in New Issue
Block a user