aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/buttons/help-button/help-button.test.tsx
blob: f36fba7a6b12d2ae1baec6de960607c689467e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { HelpButton } from './help-button';

describe('Help', () => {
  it('renders a help button', () => {
    const label = 'hic';

    render(<HelpButton label={label} />);

    expect(rtlScreen.getByRole('button')).toHaveAccessibleName(label);
  });
});