From 43a569adab6b78710bc27f81f96b5b89786fb7dd Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 7 Sep 2024 21:46:20 +0200 Subject: [PATCH] [test] Remove dead act( logic --- .../src/tests/detailPanel.DataGridPro.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/x-data-grid-pro/src/tests/detailPanel.DataGridPro.test.tsx b/packages/x-data-grid-pro/src/tests/detailPanel.DataGridPro.test.tsx index 29a8ffe8b2b9..1f71824e507f 100644 --- a/packages/x-data-grid-pro/src/tests/detailPanel.DataGridPro.test.tsx +++ b/packages/x-data-grid-pro/src/tests/detailPanel.DataGridPro.test.tsx @@ -489,9 +489,7 @@ describe(' - Detail panel', () => { } detailPanelExpandedRowIds={[0]} />, ); expect(screen.getByTestId(`detail-panel-content`).textContent).to.equal(`${counter}`); - act(() => { - setProps({ detailPanelExpandedRowIds: [1] }); - }); + setProps({ detailPanelExpandedRowIds: [1] }); expect(screen.getByTestId(`detail-panel-content`).textContent).to.equal(`${counter}`); });