Skip to content

Commit

Permalink
actual fix for flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri865 committed Jan 21, 2025
1 parent 4745a67 commit 0b383e7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ describe('<DataGridPremium /> - Data source aggregation', () => {

it('should show aggregation option in the column menu', async () => {
const { user } = render(<TestDataSourceAggregation />);
await waitFor(() => {
expect(getRowsSpy.callCount).to.be.greaterThan(0);
});
await user.click(within(getColumnHeaderCell(0)).getByLabelText('Menu'));
expect(screen.queryByLabelText('Aggregation')).not.to.equal(null);
});
Expand Down

0 comments on commit 0b383e7

Please sign in to comment.