- Pagination', () => {
];
expect(() => {
const { setProps } = render(
-
,
+
+
+
,
);
setProps({ rows: rows.slice(0, 2) });
}).not.to.throw();
diff --git a/test/karma.conf.js b/test/karma.conf.js
index 483d8e8ca3686..3da8db12d5404 100644
--- a/test/karma.conf.js
+++ b/test/karma.conf.js
@@ -3,7 +3,7 @@ const webpack = require('webpack');
const CI = Boolean(process.env.CI);
-process.env.CHROME_BIN = chromium.executablePath();
+process.env.CHROME_BIN ||= chromium.executablePath();
// Karma configuration
module.exports = function setKarmaConfig(config) {
diff --git a/test/regressions/data-grid/DataGridPinnedBottomRow.js b/test/regressions/data-grid/DataGridPinnedBottomRow.js
new file mode 100644
index 0000000000000..1b3d5c71c9f58
--- /dev/null
+++ b/test/regressions/data-grid/DataGridPinnedBottomRow.js
@@ -0,0 +1,44 @@
+import * as React from 'react';
+import { DataGridPro } from '@mui/x-data-grid-pro';
+import {
+ randomCity,
+ randomEmail,
+ randomId,
+ randomInt,
+ randomTraderName,
+ randomUserName,
+} from '@mui/x-data-grid-generator';
+
+const columns = [
+ { field: 'name', headerName: 'Name', width: 150 },
+ { field: 'city', headerName: 'City', width: 150 },
+ { field: 'username', headerName: 'Username' },
+ { field: 'email', headerName: 'Email', width: 200 },
+ { field: 'age', type: 'number', headerName: 'Age' },
+];
+
+const rows = [];
+
+function getRow() {
+ return {
+ id: randomId(),
+ name: randomTraderName(),
+ city: randomCity(),
+ username: randomUserName(),
+ email: randomEmail(),
+ age: randomInt(10, 80),
+ };
+}
+
+const pinnedRows = {
+ top: [getRow()],
+ bottom: [getRow()],
+};
+
+export default function RowPinning() {
+ return (
+
+
+
+ );
+}