Add dropdown on Sort button on table

This commit is contained in:
Charles Bochet
2023-04-19 12:58:08 +02:00
parent bb40c1b40a
commit 1e635b9d2f
11 changed files with 215 additions and 16 deletions

View File

@ -1,5 +1,3 @@
import { MemoryRouter } from 'react-router-dom';
import Checkbox from '../Checkbox';
import { ThemeProvider } from '@emotion/react';
import { lightTheme } from '../../../layout/styles/themes';
@ -12,9 +10,7 @@ export default {
export const RegularCheckbox = () => {
return (
<ThemeProvider theme={lightTheme}>
<MemoryRouter initialEntries={['/companies']}>
<Checkbox name="selected-company-1" id="selected-company--1" />
</MemoryRouter>
<Checkbox name="selected-company-1" id="selected-company--1" />
</ThemeProvider>
);
};

View File

@ -2,7 +2,7 @@ import { render } from '@testing-library/react';
import { RegularCheckbox } from '../__stories__/Checkbox.stories';
it('Checks the NavItem renders', () => {
it('Checks the Checkbox renders', () => {
const { getByTestId } = render(<RegularCheckbox />);
expect(getByTestId('input-checkbox')).toHaveAttribute(