This commit is contained in:
2026-08-14 14:27:03 +08:00
parent 724848feb6
commit a81af4a664
64 changed files with 961 additions and 176 deletions
@@ -12,10 +12,13 @@ describe('TruckAttachmentDialog interaction governance', () => {
expect(source).not.toContain('item.objectKey')
})
it('hides the unavailable manual reference flow but keeps deletion', () => {
it('provides scoped upload and deletion without exposing manual file ids', () => {
expect(source).not.toContain('referenceTruckAppointmentAttachment')
expect(source).not.toContain('输入文件服务 ID')
expect(source).toContain('uploadTruckAppointmentAttachment')
expect(source).toContain('上传并关联')
expect(source).toContain('deleteTruckAppointmentAttachment')
expect(source).toContain("confirmButtonText: '确认', cancelButtonText: '取消'")
expect(source).toContain('<Trash2 :size="15" />删除')
expect(source).toContain('size="small" type="danger" plain')
expect(source).not.toContain(' text type="danger"')