fix(web/m7-352): use typographic apostrophe in failed-variant copy

This commit is contained in:
2026-05-04 19:16:25 -04:00
parent b8f9b3891b
commit 26f4c7a79f
2 changed files with 2 additions and 2 deletions
@@ -14,7 +14,7 @@
const copy = $derived.by(() => { const copy = $derived.by(() => {
switch (variant) { switch (variant) {
case 'building': return 'Building your daily mix…'; case 'building': return 'Building your daily mix…';
case 'failed': return 'Couldn't build this mix. Retrying soon.'; case 'failed': return 'Couldnt build this mix. Retrying soon.';
case 'seed-needed': return 'Listen to more variety to unlock this slot.'; case 'seed-needed': return 'Listen to more variety to unlock this slot.';
default: return 'Listen to a few tracks — appears within 24h.'; default: return 'Listen to a few tracks — appears within 24h.';
} }
@@ -17,7 +17,7 @@ describe('PlaylistPlaceholderCard', () => {
test('failed variant shows failure copy and does NOT pulse', () => { test('failed variant shows failure copy and does NOT pulse', () => {
const { container } = render(PlaylistPlaceholderCard, { props: { label: 'For You', variant: 'failed' } }); const { container } = render(PlaylistPlaceholderCard, { props: { label: 'For You', variant: 'failed' } });
expect(screen.getByText(/Couldn't build this mix/i)).toBeInTheDocument(); expect(screen.getByText(/Couldn.t build this mix/i)).toBeInTheDocument();
const cover = container.querySelector('[data-variant="failed"] .aspect-square'); const cover = container.querySelector('[data-variant="failed"] .aspect-square');
expect(cover?.className).not.toMatch(/animate-pulse/); expect(cover?.className).not.toMatch(/animate-pulse/);
}); });