diff --git a/client/src/components/SearchForm.test.tsx b/client/src/components/SearchForm.test.tsx index 73e8c1f..0fdd149 100644 --- a/client/src/components/SearchForm.test.tsx +++ b/client/src/components/SearchForm.test.tsx @@ -122,4 +122,12 @@ describe('SearchForm', () => { submit(); expect(onSearch).toHaveBeenCalledExactlyOnceWith(''); }); + + it('renders a clean search placeholder without replacement characters', () => { + render(); + expect(screen.getByRole('searchbox')).toHaveAttribute( + 'placeholder', + 'Search by album or artist', + ); + }); }); diff --git a/client/src/components/SearchForm.tsx b/client/src/components/SearchForm.tsx index 192a35b..bb58527 100644 --- a/client/src/components/SearchForm.tsx +++ b/client/src/components/SearchForm.tsx @@ -168,7 +168,7 @@ export default function SearchForm({ query, onSearch, history }: Props) { }} onCompositionStart={() => setComposing(true)} onCompositionEnd={() => setComposing(false)} - placeholder="Search by album or artist�" + placeholder="Search by album or artist" /> {history && (