diff --git a/src/components/Button/Button.test.tsx b/src/components/Button/Button.test.tsx index eec7cd4..66539e1 100644 --- a/src/components/Button/Button.test.tsx +++ b/src/components/Button/Button.test.tsx @@ -599,4 +599,27 @@ describe('Button', () => { warn.mockRestore(); }); + + it('applies id and fires onFocus on both the button and the link', async () => { + const user = userEvent.setup(); + const onFocus = vi.fn(); + const {rerender} = render( +