Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Nov 27, 2024
1 parent 1706a21 commit d27d241
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/components/iconhelper/IconHelper.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { getWrapper } from '../../testUtils';
import userEvent from '@testing-library/user-event';
import { IconHelp } from './IconHelper';

describe('Icon', () => {
describe('IconHelper', () => {
const selectors = {
icon: () => screen.getByRole('img', { name: /Info/i }),
icon: () => screen.getByRole('img'),
};
const renderIcon = (tooltipMessage: React.ReactNode) => {
const { Wrapper } = getWrapper();
render(
<Wrapper>
<IconHelp tooltipMessage={tooltipMessage} />
<IconHelp tooltipMessage={tooltipMessage} title="Info" />
</Wrapper>,
);
};
Expand Down Expand Up @@ -41,12 +41,12 @@ describe('Icon', () => {
<Wrapper>
<IconHelp
tooltipMessage={'This is a tooltip'}
title="Info Helper testing"
title="Info Helper Testing"
/>
</Wrapper>,
);
await waitFor(() => {
expect(screen.getByLabelText('Info Helper testing')).toBeInTheDocument();
expect(screen.getByLabelText('Info Helper Testing')).toBeInTheDocument();
});
});
});

0 comments on commit d27d241

Please sign in to comment.