diff --git a/src/lib/components/iconhelper/IconHelper.test.tsx b/src/lib/components/iconhelper/IconHelper.test.tsx index 6674ad3c12..6b961e5bb5 100644 --- a/src/lib/components/iconhelper/IconHelper.test.tsx +++ b/src/lib/components/iconhelper/IconHelper.test.tsx @@ -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( - + , ); }; @@ -41,12 +41,12 @@ describe('Icon', () => { , ); await waitFor(() => { - expect(screen.getByLabelText('Info Helper testing')).toBeInTheDocument(); + expect(screen.getByLabelText('Info Helper Testing')).toBeInTheDocument(); }); }); });