diff --git a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.test.tsx b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.test.tsx index 65bfe28381f..55207d53415 100644 --- a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.test.tsx +++ b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.test.tsx @@ -130,14 +130,18 @@ describe('SearchField', () => { if (select) { // Select tag22 as the tag await user.click(select); - jest.advanceTimersByTime(1000); + await act(async () => { + jest.advanceTimersByTime(1000); + }); const tag22 = await screen.findByText('tag22'); await user.click(tag22); expect(updateFilter).toHaveBeenCalledWith({ ...filter, tag: 'tag22', value: [] }); // Select tag1 as the tag await user.click(select); - jest.advanceTimersByTime(1000); + await act(async () => { + jest.advanceTimersByTime(1000); + }); const tag1 = await screen.findByText('tag1'); await user.click(tag1); expect(updateFilter).toHaveBeenCalledWith({ ...filter, tag: 'tag1', value: [] }); diff --git a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.tsx b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.tsx index 049ab7a41b8..612c671d506 100644 --- a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.tsx +++ b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.tsx @@ -165,7 +165,8 @@ const SearchField = ({ placeholder="Select tag" isClearable aria-label={`select ${filter.id} tag`} - allowCustomValue={true} + allowCustomValue + virtualized /> )}