Skip to content

Commit

Permalink
[test] Remove dead act() logic (mui#14529)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and Arthur Balduini committed Sep 30, 2024
1 parent 0eec5a9 commit 4747d9f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,7 @@ describe('<DataGridPro /> - Detail panel', () => {
<TestCase getDetailPanelContent={() => <DetailPanel />} 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}`);
});

Expand Down

0 comments on commit 4747d9f

Please sign in to comment.