fix(web-admin): 样本接收弹窗恢复展示协议附件
验收反馈要求协议附件可见;细胞存储分组恢复为知情同意书、孕妇健康调查表、协议附件三项。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e2a50b33fe
commit
67a209298c
2 files changed
+20
-3
No files matched your search
@@ -42,10 +42,19 @@ describe('protocol-source-attachment', () => {
|
||||
})
|
||||
assert.deepEqual(
|
||||
groups.map((g) => g.label),
|
||||
['知情同意书', '孕妇健康调查表']
|
||||
['知情同意书', '孕妇健康调查表', '协议附件']
|
||||
)
|
||||
assert.ok(groups.every((g) => g.files.length === 1))
|
||||
assert.equal(groups.length, 2)
|
||||
})
|
||||
|
||||
it('accepts attachments alias for cell storage protocol files', () => {
|
||||
const groups = getSourceProtocolAttachmentGroups({
|
||||
sourceType: 'cell_storage',
|
||||
attachments: [{ id: 'alias' }]
|
||||
})
|
||||
const protocol = groups.find((g) => g.label === '协议附件')
|
||||
assert.ok(protocol)
|
||||
assert.equal(protocol.files.length, 1)
|
||||
})
|
||||
|
||||
it('groups research donation attachments for reception dialog', () => {
|
||||
|
||||
Reference in new issue
Block a user