From ddff3d282a38c46276af9b9ba0eabaadfffb34e2 Mon Sep 17 00:00:00 2001 From: Molecule AI Core-UIUX Date: Tue, 12 May 2026 00:22:51 +0000 Subject: [PATCH] test(canvas/chat): add AttachmentAudio coverage (9 cases) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same state machine as AttachmentVideo: idle → loading → ready/error. Loading skeleton with aria-label, tone-based border colors, filename label, AttachmentChip fallback on error, blob URL cleanup, external URI direct href without fetch. Co-Authored-By: Claude Opus 4.7 --- .../chat/__tests__/AttachmentAudio.test.tsx | 275 ++++++++++++++++++ 1 file changed, 275 insertions(+) create mode 100644 canvas/src/components/tabs/chat/__tests__/AttachmentAudio.test.tsx diff --git a/canvas/src/components/tabs/chat/__tests__/AttachmentAudio.test.tsx b/canvas/src/components/tabs/chat/__tests__/AttachmentAudio.test.tsx new file mode 100644 index 00000000..bd8c946e --- /dev/null +++ b/canvas/src/components/tabs/chat/__tests__/AttachmentAudio.test.tsx @@ -0,0 +1,275 @@ +// @vitest-environment jsdom +/** + * AttachmentAudio — inline native HTML5