Another try
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user