Skip to content

Commit

Permalink
chore(explore): make metric/column search input clearable (#16320)
Browse files Browse the repository at this point in the history
* chore(explore): make metric/column search input clearable

* Fix typo

* Fix test
  • Loading branch information
kgabryje committed Aug 18, 2021
1 parent 5f060a2 commit 2c595b0
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
Loading

0 comments on commit 2c595b0

Please sign in to comment.