Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: balanza <[email protected]>
  • Loading branch information
balanza committed Jun 21, 2024
1 parent 7c92ef4 commit 7b159fa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions assets/js/common/Tooltip/Tooltip.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import userEvent from '@testing-library/user-event';
import '@testing-library/jest-dom';

import Tooltip from '.';
import { WithStyle } from '../../lib/test-utils/ui';

describe('Tooltip', () => {
it('should show a text when mouse is hovering', async () => {
Expand Down Expand Up @@ -89,9 +90,11 @@ describe('Tooltip', () => {
const user = userEvent.setup();

render(
<div>
<Tooltip content="This is my tooltip text">This is my anchor</Tooltip>
</div>
<WithStyle>
<div>
<Tooltip content="This is my tooltip text">This is my anchor</Tooltip>
</div>
</WithStyle>
);

expect(screen.queryByText('This is my tooltip text')).toBeNull();
Expand Down

0 comments on commit 7b159fa

Please sign in to comment.