From fe4d4dfe8bdec23a53526c89da0ea21c537cbda8 Mon Sep 17 00:00:00 2001 From: Noah Sgorbati Date: Fri, 11 Oct 2024 17:40:51 +0100 Subject: [PATCH] test(definitiontooltip): definitiontooltip tests * remove duplicate test case --- .../Tooltip/__tests__/DefinitionTooltip-test.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/packages/react/src/components/Tooltip/__tests__/DefinitionTooltip-test.js b/packages/react/src/components/Tooltip/__tests__/DefinitionTooltip-test.js index 0042894157b1..232653cb8e79 100644 --- a/packages/react/src/components/Tooltip/__tests__/DefinitionTooltip-test.js +++ b/packages/react/src/components/Tooltip/__tests__/DefinitionTooltip-test.js @@ -22,22 +22,6 @@ describe('DefinitionTooltip', () => { expect(screen.getByRole('button')).toHaveAttribute('aria-expanded', 'true'); }); - it('should control tooltip display when using keyboard event', async () => { - const definition = 'Uniform Resource Locator'; - render(URL); - expect(screen.getByRole('button')).toHaveAttribute( - 'aria-expanded', - 'false' - ); - await userEvent.tab(); - expect(screen.getByRole('button')).toHaveAttribute('aria-expanded', 'true'); - await userEvent.tab(); - expect(screen.getByRole('button')).toHaveAttribute( - 'aria-expanded', - 'false' - ); - }); - it('should have a visible tooltip if `defaultOpen` is set to true', () => { const definition = 'test-definition'; render(