Another try

This commit is contained in:
Stefan Ålund
2020-10-18 08:20:06 +02:00
parent d90a8109c2
commit 763ec1cd2f
2 changed files with 2 additions and 1 deletions
@@ -35,7 +35,7 @@ describe('<PinButton />', () => {
expect(rendered.getByText('Pin Sidebar')).toBeInTheDocument();
const pinButton = rendered.getByTestId('pin');
fireEvent.click(pinButton);
fireEvent.change(pinButton);
expect(mockToggleFn).toHaveBeenCalled();
});
});
@@ -47,6 +47,7 @@ export const PinButton = () => {
onChange={() => toggleSidebarPinState()}
name="pin"
data-test-id="pin"
inputProps={{ 'aria-label': 'Pin Sidebar Switch' }}
/>
</Tooltip>
</ListItemSecondaryAction>