From d90a2db871ccd1a40fd40909f4b6e0bdea5442af Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Mon, 4 Apr 2022 09:36:58 +0200 Subject: [PATCH] chore: replace pointer with click Signed-off-by: Johan Haals --- .../components/CatalogGraphPage/CatalogGraphPage.test.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/catalog-graph/src/components/CatalogGraphPage/CatalogGraphPage.test.tsx b/plugins/catalog-graph/src/components/CatalogGraphPage/CatalogGraphPage.test.tsx index 275b894d78..700053bcd7 100644 --- a/plugins/catalog-graph/src/components/CatalogGraphPage/CatalogGraphPage.test.tsx +++ b/plugins/catalog-graph/src/components/CatalogGraphPage/CatalogGraphPage.test.tsx @@ -194,10 +194,7 @@ describe('', () => { expect(await findAllByTestId('node')).toHaveLength(2); - await userEvent.pointer({ - keys: '[MouseLeft]', - target: getByText('b:d/e'), - }); + await userEvent.click(getByText('b:d/e')); expect(analyticsSpy.getEvents()[0]).toMatchObject({ action: 'click',