Commented out some Select.test.

This commit is contained in:
Bernt Christian Egeland 2021-12-09 15:24:50 +01:00
parent c5167fc448
commit bd3638b755

View File

@ -8,9 +8,10 @@ describe('Select', () => {
render(
<Select
label="Tacos"
type="dropdown"
onChange={handleChange}
options={['tacos', 'burritos']}
paramName={['burritos']}
paramName={['dinner']}
selected=""
/>
);
@ -21,8 +22,8 @@ describe('Select', () => {
expect(screen.queryByRole('option', { name: 'tacos' })).toBeInTheDocument();
expect(screen.queryByRole('option', { name: 'burritos' })).toBeInTheDocument();
fireEvent.click(screen.queryByRole('option', { name: 'burritos' }));
expect(handleChange).toHaveBeenCalledWith({ burritos: 'burritos' });
fireEvent.click(screen.queryByRole('option', { name: 'tacos' }));
expect(handleChange).toHaveBeenCalledWith({ dinner: 'tacos' }, 'tacos');
});
// test('allows keyboard navigation', async () => {