From 0e9c5cb77b3ce8573541f5fec0610012983d81df Mon Sep 17 00:00:00 2001 From: nicolethoen Date: Thu, 3 Oct 2024 15:48:31 -0400 Subject: [PATCH] fix tests --- .../CatalogTile/CatalogTile.test.tsx | 2 +- .../__snapshots__/CatalogTile.test.tsx.snap | 72 +++++-------------- 2 files changed, 19 insertions(+), 55 deletions(-) diff --git a/packages/module/src/components/CatalogTile/CatalogTile.test.tsx b/packages/module/src/components/CatalogTile/CatalogTile.test.tsx index 6080958..a52990e 100644 --- a/packages/module/src/components/CatalogTile/CatalogTile.test.tsx +++ b/packages/module/src/components/CatalogTile/CatalogTile.test.tsx @@ -121,6 +121,6 @@ test('CatalogTile onClick behaves properly', async () => { ); // await user.click(screen.getByText('Patternfly')); - await user.click(screen.getByRole('radio')); + await user.click(screen.getByRole('button')); expect(onClickMock).toHaveBeenCalled(); }); diff --git a/packages/module/src/components/CatalogTile/__snapshots__/CatalogTile.test.tsx.snap b/packages/module/src/components/CatalogTile/__snapshots__/CatalogTile.test.tsx.snap index 5519f51..a354aa4 100644 --- a/packages/module/src/components/CatalogTile/__snapshots__/CatalogTile.test.tsx.snap +++ b/packages/module/src/components/CatalogTile/__snapshots__/CatalogTile.test.tsx.snap @@ -18,24 +18,12 @@ exports[`CatalogTile href renders properly 1`] = `
-
- -
+
-
- -
+
-
- -
+