import React from 'react' import { render, screen } from '@testing-library/react' import { type HeadingProps } from '~components/Heading' import { InlineNotification } from './InlineNotification' describe('', () => { it('renders a notification with a custom heading level', () => { const customHeadingProps: HeadingProps = { variant: 'heading-6', tag: 'h2', children: 'Custom', } render( Something has gone wrong , ) expect(screen.getByRole('heading', { level: 2 })).toBeInTheDocument() }) })