feat(aihr): close functional checklist gaps

This commit is contained in:
key
2026-08-02 12:15:45 +08:00
parent 699cc08050
commit 6ad8a017a4
80 changed files with 4930 additions and 430 deletions
@@ -4,16 +4,22 @@ import test from 'node:test';
const read = (path) => readFile(new URL(path, import.meta.url), 'utf8');
test('公司文件在员工端展示摘要、受控原文件入口并继续复用消息ID追问', async () => {
test('公司文件在员工端优先在线阅读、按授权下载并继续复用消息ID追问', async () => {
const [service, detail] = await Promise.all([
read('../src/services/broadcast.ts'),
read('../src/pages/user/broadcast/detail.vue')
]);
assert.match(service, /interface BroadcastAttachment/);
assert.match(service, /downloadUrl: string/);
assert.match(service, /viewUrl: string/);
assert.match(service, /downloadUrl\?: string/);
assert.match(service, /allowDownload: boolean/);
assert.match(service, /getBroadcastAttachmentView/);
assert.match(detail, /公司文件/);
assert.match(detail, /attachment\.summary/);
assert.match(detail, /authenticatedFileUrl/);
assert.match(detail, /item.attachment.allowDownload && item.attachment.downloadUrl/);
assert.match(detail, /在线阅读/);
assert.match(detail, /watermark-layer/);
assert.match(detail, /saveBroadcastQuestionContext\(item\.value\.id/);
});