chore(explore): make metric/column search input clearable (#16320)

* chore(explore): make metric/column search input clearable

* Fix typo

* Fix test
This commit is contained in:
Kamil Gabryjelski
2021-08-18 12:23:23 +02:00
committed by GitHub
parent 5f060a2227
commit 2c595b09ea
2 changed files with 211 additions and 170 deletions

View File

@@ -116,7 +116,7 @@ test('should render 0 search results', async () => {
const searchInput = screen.getByPlaceholderText('Search Metrics & Columns');
search('nothing', searchInput);
expect(await screen.findByText('Showing 0 of 0')).toBeInTheDocument();
expect(await screen.findAllByText('Showing 0 of 0')).toHaveLength(2);
});
test('should search and render matching columns', async () => {