Skip to content

Commit

Permalink
another round
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 28, 2024
1 parent 4b6eb1a commit fdd7fce
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import { expect } from 'chai';
import Excel from 'exceljs';
import { spyApi } from 'test/utils/helperFn';

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

describe('<DataGridPremium /> - Export Excel', () => {
const { render } = createRenderer();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ import {
} from '@mui/x-data-grid-premium';
import { spy } from 'sinon';

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

interface BaselineProps extends DataGridPremiumProps {
rows: GridRowsProp;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import { createRenderer, act } from '@mui/internal-test-utils';
import { expect } from 'chai';
import { getColumnValues } from 'test/utils/helperFn';

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

const rows: GridRowsProp = [
{ id: 0, category: 'Cat A' },
{ id: 1, category: 'Cat A' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ describe('<DataGridPro /> - Detail panel', () => {
const getDetailPanelHeight = spy(() => 100);
const { setProps } = render(
<TestCase
autoHeight
columns={[{ field: 'brand' }]}
rows={[
{ id: 0, brand: 'Nike' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ describe('<DataGridPro /> - Layout', () => {
<div style={{ width: 300, height: 300 }}>
<DataGridPro
{...baselineProps}
autoHeight
headerFilters
columnHeaderHeight={20}
headerFilterHeight={32}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import {
getColumnValues,
} from 'test/utils/helperFn';

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

const rows: GridRowsProp = [
{ id: 0, category: 'Cat A' },
{ id: 1, category: 'Cat A' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import {
GridPaginationModel,
} from '@mui/x-data-grid-pro';

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

const rowsWithoutGap: GridRowsProp = [
{ name: 'A' },
{ name: 'A.A' },
Expand Down
2 changes: 0 additions & 2 deletions packages/x-data-grid/src/tests/filterPanel.DataGrid.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ function CustomInputValue(props: GridFilterInputValueProps) {
);
}

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

describe('<DataGrid /> - Filter panel', () => {
const { render, clock } = createRenderer({ clock: 'fake' });

Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid/src/tests/keyboard.DataGrid.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe('<DataGrid /> - Keyboard', () => {
pageSizeOptions={[PAGE_SIZE]}
rowBufferPx={PAGE_SIZE * ROW_HEIGHT}
rowHeight={ROW_HEIGHT}
autoHeight
columnHeaderHeight={HEADER_HEIGHT}
hideFooter
filterModel={{ items: [{ field: 'id', operator: '>', value: 10 }] }}
Expand Down

0 comments on commit fdd7fce

Please sign in to comment.