diff --git a/src/Breadcrumb/Breadcrumb.test.jsx b/src/Breadcrumb/Breadcrumb.test.jsx index 2b8c93b8f8..3b402d971e 100644 --- a/src/Breadcrumb/Breadcrumb.test.jsx +++ b/src/Breadcrumb/Breadcrumb.test.jsx @@ -48,7 +48,8 @@ describe('', () => { expect(screen.getAllByRole('presentation').length).toBe(2); }); - it('fires the passed in click handler', () => { + it('fires the passed in click handler', async () => { + const user = userEvent.setup(); const clickHandler = jest.fn(); render(); @@ -56,7 +57,7 @@ describe('', () => { const links = screen.queryAllByRole('link'); expect(listItems.length).toBe(baseProps.links.length); - userEvent.click(links[0]); + await user.click(links[0]); expect(clickHandler).toHaveBeenCalled(); }); diff --git a/src/Button/deprecated/Button.test.jsx b/src/Button/deprecated/Button.test.jsx index cb8fa7cfea..1a34c4dcee 100644 --- a/src/Button/deprecated/Button.test.jsx +++ b/src/Button/deprecated/Button.test.jsx @@ -14,21 +14,23 @@ describe('