diff --git a/plugins/search-react/src/components/SearchBar/SearchBar.test.tsx b/plugins/search-react/src/components/SearchBar/SearchBar.test.tsx
index bdff7ba57c..3f667a4ad6 100644
--- a/plugins/search-react/src/components/SearchBar/SearchBar.test.tsx
+++ b/plugins/search-react/src/components/SearchBar/SearchBar.test.tsx
@@ -298,4 +298,37 @@ describe('SearchBar', () => {
expect(analyticsApiMock.getEvents()).toHaveLength(0);
});
+
+ it('Renders custom search icon', async () => {
+ const CustomSearchIcon = () => (
+
+ );
+
+ await renderInTestApp(
+
+
+
+
+ ,
+ {
+ icons: {
+ search: CustomSearchIcon,
+ },
+ },
+ );
+
+ const queryButton = screen.getByLabelText('Query');
+
+ expect(queryButton).toBeInTheDocument();
+ expect(queryButton.innerHTML).toContain(
+ '',
+ );
+ });
});