Skip to content

Commit

Permalink
Wait for the data to load
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Jan 10, 2025
1 parent 4d4f972 commit 695e46e
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 695e46e

Please sign in to comment.