From 397c65dd0e77345839711e439e1119f96b65a990 Mon Sep 17 00:00:00 2001 From: katrinan029 Date: Mon, 16 Sep 2024 19:11:48 +0000 Subject: [PATCH] feat: update expand all text on enterprise customer datatable --- .../Customers/CustomerDataTable/CustomersPage.jsx | 6 +++++- .../CustomerDataTable/tests/CustomersPage.test.jsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Configuration/Customers/CustomerDataTable/CustomersPage.jsx b/src/Configuration/Customers/CustomerDataTable/CustomersPage.jsx index 824208622..bcb9b5644 100644 --- a/src/Configuration/Customers/CustomerDataTable/CustomersPage.jsx +++ b/src/Configuration/Customers/CustomerDataTable/CustomersPage.jsx @@ -67,7 +67,11 @@ const CustomersPage = () => { columns={[ { id: 'expander', - Header: DataTable.ExpandAll, + Header: ({ getToggleAllRowsExpandedProps }) => ( + + ), Cell: DataTable.ExpandRow, }, { diff --git a/src/Configuration/Customers/CustomerDataTable/tests/CustomersPage.test.jsx b/src/Configuration/Customers/CustomerDataTable/tests/CustomersPage.test.jsx index 6c5fc3859..81c094059 100644 --- a/src/Configuration/Customers/CustomerDataTable/tests/CustomersPage.test.jsx +++ b/src/Configuration/Customers/CustomerDataTable/tests/CustomersPage.test.jsx @@ -47,7 +47,7 @@ describe('CustomersPage', () => { expect(screen.getByText('SSO Check')).toBeInTheDocument(); expect(screen.getByText('API Check')).toBeInTheDocument(); }); - + expect(screen.getByText('View subsidies')).toBeInTheDocument(); expect(screen.getByText('Customers')).toBeInTheDocument(); expect(screen.getByText('Customer details')).toBeInTheDocument(); expect(screen.getByText('SSO')).toBeInTheDocument();