From 1b8213653a833418793fa98c1cc6ac3b77b95df8 Mon Sep 17 00:00:00 2001 From: amlannandy Date: Sat, 7 Dec 2024 11:08:57 +0530 Subject: [PATCH] feat: update tests --- .../ListOfDashboard/DashboardsList.tsx | 117 +++++++++--------- .../__tests__/DashboardListPage.test.tsx | 2 +- 2 files changed, 59 insertions(+), 60 deletions(-) diff --git a/frontend/src/container/ListOfDashboard/DashboardsList.tsx b/frontend/src/container/ListOfDashboard/DashboardsList.tsx index 254a12b195..760fee457d 100644 --- a/frontend/src/container/ListOfDashboard/DashboardsList.tsx +++ b/frontend/src/container/ListOfDashboard/DashboardsList.tsx @@ -521,65 +521,64 @@ function DashboardsList(): JSX.Element { {action && ( -
- -
- - - -
-
- -
-
- } - placement="bottomRight" - arrow={false} - rootClassName="dashboard-actions" - > - { - e.stopPropagation(); - e.preventDefault(); - }} - /> - - + +
+ + + +
+
+ +
+ + } + placement="bottomRight" + arrow={false} + rootClassName="dashboard-actions" + > + { + e.stopPropagation(); + e.preventDefault(); + }} + /> +
)}
diff --git a/frontend/src/pages/DashboardsListPage/__tests__/DashboardListPage.test.tsx b/frontend/src/pages/DashboardsListPage/__tests__/DashboardListPage.test.tsx index bcb166eeb0..0fcdea102b 100644 --- a/frontend/src/pages/DashboardsListPage/__tests__/DashboardListPage.test.tsx +++ b/frontend/src/pages/DashboardsListPage/__tests__/DashboardListPage.test.tsx @@ -218,7 +218,7 @@ describe('dashboard list page', () => { ); await waitFor(() => { - const popovers = getAllByTestId('dashboard-action-popover'); + const popovers = getAllByTestId('dashboard-action-icon'); expect(popovers).toHaveLength(dashboardSuccessResponse.data.length); fireEvent.click([...popovers[0].children][0]); });