From 46f7531c6c2e13a6efac4a6d1bd6820094730edd Mon Sep 17 00:00:00 2001 From: Karthik Date: Fri, 6 Dec 2024 19:19:26 +0530 Subject: [PATCH] fix(pipelines): fix unit tests --- .../Output/Toolbar/__tests__/ComponentFilter.test.tsx | 2 +- .../components/Output/Toolbar/__tests__/CveIdFilter.test.tsx | 2 +- .../components/Output/Toolbar/__tests__/StatusFilter.test.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pipelines/src/components/Output/Toolbar/__tests__/ComponentFilter.test.tsx b/packages/pipelines/src/components/Output/Toolbar/__tests__/ComponentFilter.test.tsx index 4d5f93a..6ae509d 100644 --- a/packages/pipelines/src/components/Output/Toolbar/__tests__/ComponentFilter.test.tsx +++ b/packages/pipelines/src/components/Output/Toolbar/__tests__/ComponentFilter.test.tsx @@ -107,7 +107,7 @@ describe('ComponentFilter', () => { toggleCheckBoxByValue('component-2'); act(() => { - fireEvent.click(screen.getByRole('button', { name: 'Close chip group Component' })); + fireEvent.click(screen.getByRole('button', { name: 'Close label group Component' })); }); waitFor(() => { diff --git a/packages/pipelines/src/components/Output/Toolbar/__tests__/CveIdFilter.test.tsx b/packages/pipelines/src/components/Output/Toolbar/__tests__/CveIdFilter.test.tsx index 65adee8..7de6338 100644 --- a/packages/pipelines/src/components/Output/Toolbar/__tests__/CveIdFilter.test.tsx +++ b/packages/pipelines/src/components/Output/Toolbar/__tests__/CveIdFilter.test.tsx @@ -110,7 +110,7 @@ describe('CveIdFilter', () => { await toggleCheckboxByValue('count-2'); act(() => { - fireEvent.click(screen.getByRole('button', { name: 'close id2' })); + fireEvent.click(screen.getByRole('button', { name: 'Close id2' })); }); waitFor(() => { diff --git a/packages/pipelines/src/components/Output/Toolbar/__tests__/StatusFilter.test.tsx b/packages/pipelines/src/components/Output/Toolbar/__tests__/StatusFilter.test.tsx index e7167eb..b753bd4 100644 --- a/packages/pipelines/src/components/Output/Toolbar/__tests__/StatusFilter.test.tsx +++ b/packages/pipelines/src/components/Output/Toolbar/__tests__/StatusFilter.test.tsx @@ -108,7 +108,7 @@ describe('StatusFilter', () => { }); act(() => { - fireEvent.click(screen.getByRole('button', { name: 'close key2' })); + fireEvent.click(screen.getByRole('button', { name: 'Close key2' })); }); waitFor(() => {