Skip to content

Commit

Permalink
fix: restore updates to filter panel search tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jendowns committed Mar 13, 2020
1 parent 4617b66 commit e9d9ea8
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ describe('FilterPanelSearch', () => {
});

test('renders results content when keyboard focus is added', () => {
const { getByTestId, getByLabelText } = render(
<FilterPanelSearch labelText="search label">
const { getByTestId, getByPlaceholderText } = render(
<FilterPanelSearch
labelText="search label"
placeHolderText="search placeholder"
>
<div data-testid="result-content" />
</FilterPanelSearch>
);
Expand All @@ -40,8 +43,11 @@ describe('FilterPanelSearch', () => {
});

test('does not render results content when keyboard focus is removed', async () => {
const { queryByTestId, getByLabelText } = render(
<FilterPanelSearch labelText="search label">
const { queryByTestId, getByPlaceholderText } = render(
<FilterPanelSearch
labelText="search label"
placeHolderText="search placeholder"
>
<div data-testid="result-content" />
</FilterPanelSearch>
);
Expand Down

0 comments on commit e9d9ea8

Please sign in to comment.