;
+ it('should reorder rows correctly with filtered data', async () => {
const rows = [
{ id: 0, brand: 'Nike' },
{ id: 1, brand: 'Adidas' },
@@ -258,12 +257,9 @@ describe(' - Row reorder', () => {
const columns = [{ field: 'brand' }];
function Test() {
- apiRef = useGridApiRef();
-
return (
- Row reorder', () => {
fireEvent.dragEnter(targetCell);
const dragOverEvent = createDragOverEvent(targetCell);
fireEvent(targetCell, dragOverEvent);
+ await microtasks();
expect(getColumnValues(1)).to.deep.equal(['Puma', 'Adidas', 'Skechers']);
});
});