Skip to content

Commit

Permalink
[test] Add missing async
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 6, 2024
1 parent d0b1687 commit 9ac8dba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ describe('<DataGridPro /> - Row editing', () => {
const processRowUpdate = spy((newRow) => newRow);
render(<TestCase processRowUpdate={processRowUpdate} />);
act(() => apiRef.current.startRowEditMode({ id: 0 }));
await act(() => {
await act(async () => {
apiRef.current.setEditCellValue({
id: 0,
field: 'currencyPair',
Expand Down Expand Up @@ -1199,7 +1199,7 @@ describe('<DataGridPro /> - Row editing', () => {
const cell = getCell(0, 2);
fireUserEvent.mousePress(cell);
fireEvent.doubleClick(cell);
await act(() => {
await act(async () => {
apiRef.current.setEditCellValue({ id: 0, field: 'price1M', value: 'USD GBP' });
});
fireEvent.keyDown(cell.querySelector('input')!, { key: 'Tab' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ describe('<DataGrid /> - Row spanning', () => {
/>,
);
expect(Object.keys(apiRef.current.state.rowSpanning.spannedCells).length).to.equal(0);
await act(() => {
await act(async () => {
apiRef.current.setPage(1);
});
expect(Object.keys(apiRef.current.state.rowSpanning.spannedCells).length).to.equal(1);
Expand Down

0 comments on commit 9ac8dba

Please sign in to comment.