diff --git a/plugins/catalog-graph/src/components/CatalogGraphPage/CatalogGraphPage.test.tsx b/plugins/catalog-graph/src/components/CatalogGraphPage/CatalogGraphPage.test.tsx
index 9453d5a000..275b894d78 100644
--- a/plugins/catalog-graph/src/components/CatalogGraphPage/CatalogGraphPage.test.tsx
+++ b/plugins/catalog-graph/src/components/CatalogGraphPage/CatalogGraphPage.test.tsx
@@ -142,7 +142,7 @@ describe('', () => {
expect(queryByText('Max Depth')).toBeNull();
- userEvent.click(getByText('Filters'));
+ await userEvent.click(getByText('Filters'));
expect(getByText('Max Depth')).toBeInTheDocument();
});
@@ -159,7 +159,7 @@ describe('', () => {
expect(await findAllByTestId('node')).toHaveLength(2);
- userEvent.click(getByText('b:d/e'));
+ await userEvent.click(getByText('b:d/e'));
expect(await findByText('hasPart')).toBeInTheDocument();
});
@@ -173,8 +173,9 @@ describe('', () => {
expect(await findAllByTestId('node')).toHaveLength(2);
- userEvent.click(getByText('b:d/e'), { shiftKey: true });
-
+ const user = userEvent.setup();
+ await user.keyboard('{Shift>}');
+ await user.click(getByText('b:d/e'));
expect(navigate).toBeCalledWith('/entity/{kind}/{namespace}/{name}');
});
@@ -193,7 +194,10 @@ describe('', () => {
expect(await findAllByTestId('node')).toHaveLength(2);
- userEvent.click(getByText('b:d/e'));
+ await userEvent.pointer({
+ keys: '[MouseLeft]',
+ target: getByText('b:d/e'),
+ });
expect(analyticsSpy.getEvents()[0]).toMatchObject({
action: 'click',
@@ -216,7 +220,9 @@ describe('', () => {
expect(await findAllByTestId('node')).toHaveLength(2);
- userEvent.click(getByText('b:d/e'), { shiftKey: true });
+ const user = userEvent.setup();
+ await user.keyboard('{Shift>}');
+ await user.click(getByText('b:d/e'));
expect(analyticsSpy.getEvents()[0]).toMatchObject({
action: 'click',