diff --git a/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx b/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx index 72402dfedb..bba2d52418 100644 --- a/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx +++ b/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx @@ -10,15 +10,18 @@ import Heading from '../Heading'; import headingSizeDataProvider from './headingSizeDataProvider'; describe('Heading', () => { - classNamePrefixProviderTest(Heading, 'typography-heading-medium-bold'); + classNamePrefixProviderTest(() => , 'typography-heading-medium-bold'); - stylePropsTest(Heading); + stylePropsTest((props) => , 'heading-test-id'); - sizePropsTest(Heading); + sizePropsTest((props) => , 'heading-test-id'); - sizeExtendedPropsTest(Heading); + sizeExtendedPropsTest( + (props) => , + 'heading-test-id', + ); - restPropsTest(Heading, 'div'); + restPropsTest((props) => , 'h1'); it.each(headingSizeDataProvider)('should have classname', (size, emphasis, expectedClassName) => { render(