Skip to content
Snippets Groups Projects
Commit e3feef41 authored by Tadeusz Miesiąc's avatar Tadeusz Miesiąc
Browse files

test(fixed broken test): getting select by correct query

parent ea58095c
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!8feat(top bar component init): added basic style, avarat and search input component
Pipeline #78627 passed
......@@ -7,7 +7,7 @@ describe('SearchBar - component', () => {
it('should let user type text', () => {
renderComponent();
const input = screen.getByRole('input', { name: 'search-input' });
const input = screen.getByTestId('search-input');
fireEvent.change(input, { target: { value: 'test value' } });
expect(screen.getByDisplayValue('test value')).toBeInTheDocument();
......
......@@ -15,6 +15,7 @@ export const SearchBar = (): JSX.Element => {
value={searchValue}
name="search-input"
aria-label="search-input"
data-testid="search-input"
onChange={onSearchChange}
className="bg-cultured r-[64px] w-72 rounded-[64px] py-2.5 px-4 text-xs outline-none border border-transparent focus:border-greyscale-600 hover:border-greyscale-600 font-medium text-font-400"
/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment