From 9ab5d709c8bdc82e3dbbeef6e5e144e881f921d8 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 29 May 2026 13:16:33 -0400 Subject: [PATCH] fix(test): DownloadEventRow row shows platform, not artist name The row template renders status + platform (PlatformChip) + time + counts; the artist isn't displayed there. Assert on 'Completed'/'Patreon' instead. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/test/components/downloadEventRow.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/test/components/downloadEventRow.spec.js b/frontend/test/components/downloadEventRow.spec.js index 17d2151..e64c0e0 100644 --- a/frontend/test/components/downloadEventRow.spec.js +++ b/frontend/test/components/downloadEventRow.spec.js @@ -5,7 +5,7 @@ import DownloadEventRow from '../../src/components/downloads/DownloadEventRow.vu import { freshPinia, mountComponent } from '../support/mountComponent.js' describe('DownloadEventRow', () => { - it('renders the artist and the mapped status label', () => { + it('renders the mapped status label and platform', () => { const pinia = freshPinia() const now = new Date().toISOString() const event = { @@ -15,7 +15,7 @@ describe('DownloadEventRow', () => { } const w = mountComponent(DownloadEventRow, { props: { event }, pinia }) const t = w.text() - expect(t).toContain('Alice') expect(t).toContain('Completed') // downloadStatusLabel('ok') + expect(t).toContain('Patreon') // platformLabel via PlatformChip }) })