From fa7e713d64234f8787a4409bfeb7b09557274db8 Mon Sep 17 00:00:00 2001 From: literat Date: Tue, 17 Dec 2024 17:45:46 +0100 Subject: [PATCH] Test(web-react): Fix typo in `data-testid` attribute --- .../web-react/src/components/Card/__tests__/Card.test.tsx | 2 +- .../src/components/Card/__tests__/CardArtwork.test.tsx | 4 ++-- .../src/components/Card/__tests__/CardEyebrow.test.tsx | 4 ++-- .../src/components/Card/__tests__/CardLogo.test.tsx | 4 ++-- .../src/components/Card/__tests__/CardMedia.test.tsx | 6 +++--- .../src/components/Card/__tests__/CardTitle.test.tsx | 8 ++++---- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/web-react/src/components/Card/__tests__/Card.test.tsx b/packages/web-react/src/components/Card/__tests__/Card.test.tsx index 67e84fc871..0651910889 100644 --- a/packages/web-react/src/components/Card/__tests__/Card.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/Card.test.tsx @@ -18,7 +18,7 @@ describe('Card', () => { }); it('should render custom element', () => { - render(); + render(); expect(screen.getByTestId('test')).toContainHTML('section'); }); diff --git a/packages/web-react/src/components/Card/__tests__/CardArtwork.test.tsx b/packages/web-react/src/components/Card/__tests__/CardArtwork.test.tsx index 8eae315293..2da564fd31 100644 --- a/packages/web-react/src/components/Card/__tests__/CardArtwork.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardArtwork.test.tsx @@ -14,13 +14,13 @@ describe('CardArtwork', () => { alignmentXPropsTest(CardArtwork, 'CardArtwork'); it('should render artwork card component and have default class name', () => { - render(); + render(); expect(screen.getByTestId('test')).toHaveClass('CardArtwork'); }); it('should render text children', () => { - render(Hello World); + render(Hello World); expect(screen.getByTestId('test')).toHaveTextContent('Hello World'); }); diff --git a/packages/web-react/src/components/Card/__tests__/CardEyebrow.test.tsx b/packages/web-react/src/components/Card/__tests__/CardEyebrow.test.tsx index b543de6be6..c01e70ad7d 100644 --- a/packages/web-react/src/components/Card/__tests__/CardEyebrow.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardEyebrow.test.tsx @@ -12,13 +12,13 @@ describe('CardEyebrow', () => { restPropsTest(CardEyebrow, '.CardEyebrow'); it('should render eyebrow card component and have default class name', () => { - render(); + render(); expect(screen.getByTestId('test')).toHaveClass('CardEyebrow'); }); it('should render text children', () => { - render(Hello World); + render(Hello World); expect(screen.getByTestId('test')).toHaveTextContent('Hello World'); }); diff --git a/packages/web-react/src/components/Card/__tests__/CardLogo.test.tsx b/packages/web-react/src/components/Card/__tests__/CardLogo.test.tsx index 56b2b145b9..a6435977e0 100644 --- a/packages/web-react/src/components/Card/__tests__/CardLogo.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardLogo.test.tsx @@ -12,13 +12,13 @@ describe('CardLogo', () => { restPropsTest(CardLogo, '.CardLogo'); it('should render logo card component and have default class name', () => { - render(); + render(); expect(screen.getByTestId('test')).toHaveClass('CardLogo'); }); it('should render text children', () => { - render(Hello World); + render(Hello World); expect(screen.getByTestId('test')).toHaveTextContent('Hello World'); }); diff --git a/packages/web-react/src/components/Card/__tests__/CardMedia.test.tsx b/packages/web-react/src/components/Card/__tests__/CardMedia.test.tsx index dc46a416bc..da894fb101 100644 --- a/packages/web-react/src/components/Card/__tests__/CardMedia.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardMedia.test.tsx @@ -14,19 +14,19 @@ describe('CardMedia', () => { sizePropsTest(CardMedia); it('should render media card media component and have default class names', () => { - render(); + render(); expect(screen.getByTestId('test')).toHaveClass('CardMedia CardMedia--auto'); }); it('should render auto size', () => { - render(); + render(); expect(screen.getByTestId('test')).toHaveClass('CardMedia--auto'); }); it('should fill the height', () => { - render(); + render(); expect(screen.getByTestId('test')).toHaveClass('CardMedia--filledHeight'); }); diff --git a/packages/web-react/src/components/Card/__tests__/CardTitle.test.tsx b/packages/web-react/src/components/Card/__tests__/CardTitle.test.tsx index d3c4b221ec..ab76be71e6 100644 --- a/packages/web-react/src/components/Card/__tests__/CardTitle.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardTitle.test.tsx @@ -12,25 +12,25 @@ describe('CardTitle', () => { restPropsTest(CardTitle, '.CardTitle'); it('should render title card component and have default class names', () => { - render(); + render(); expect(screen.getByTestId('test')).toHaveClass('CardTitle CardTitle--heading'); }); it('should render custom element', () => { - render(); + render(); expect(screen.getByTestId('test')).toContainHTML('h1'); }); it('should render as heading', () => { - render(); + render(); expect(screen.getByTestId('test')).toHaveClass('CardTitle--heading'); }); it('should render text children', () => { - render(Hello World); + render(Hello World); expect(screen.getByTestId('test')).toHaveTextContent('Hello World'); });