Skip to content

Commit

Permalink
[test] Name test suites according to sentence case (mui#10429)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas <[email protected]>
  • Loading branch information
alexfauquette and LukasTy authored Sep 22, 2023
1 parent b9fe5c1 commit 0666b40
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { getColumnValues } from 'test/utils/helperFn';

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

describe('<DataGrid /> - Quick Filter', () => {
describe('<DataGrid /> - Quick filter', () => {
const { render } = createRenderer();

const baselineProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ describe('<DataGridPremium /> - Aggregation', () => {
});
});

describe('Tree Data', () => {
describe('Tree data', () => {
function TreeDataTest(props: Omit<DataGridPremiumProps, 'columns'>) {
return (
<Test
Expand Down Expand Up @@ -355,7 +355,7 @@ describe('<DataGridPremium /> - Aggregation', () => {
});
});

describe('Column Menu', () => {
describe('Column menu', () => {
it('should render select on aggregable column', () => {
render(<Test />);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const baselineProps: DataGridPremiumProps = {
],
};

describe('<DataGridPremium /> - Row Grouping', () => {
describe('<DataGridPremium /> - Row grouping', () => {
const { render, clock } = createRenderer();

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const FULL_INITIAL_STATE: GridInitialState = {
},
};

describe('<DataGridPremium /> - State Persistence', () => {
describe('<DataGridPremium /> - State persistence', () => {
const { render } = createRenderer();

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getBasicGridData } from '@mui/x-data-grid-generator';
import { createRenderer, fireEvent, act, userEvent } from '@mui/monorepo/test/utils';
import { getCell, spyApi } from 'test/utils/helperFn';

describe('<DataGridPro /> - Cell Editing', () => {
describe('<DataGridPro /> - Cell editing', () => {
const { render, clock } = createRenderer({ clock: 'fake' });

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getColumnHeaderCell, getColumnValues } from 'test/utils/helperFn';

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

describe('<DataGridPro /> - Column Headers', () => {
describe('<DataGridPro /> - Column headers', () => {
const { render, clock } = createRenderer({ clock: 'fake' });

const baselineProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getActiveCell, getCell, getColumnHeaderCell } from 'test/utils/helperFn

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

describe('<DataGridPro /> - Column Spanning', () => {
describe('<DataGridPro /> - Column spanning', () => {
const { render } = createRenderer({ clock: 'fake' });

const baselineProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const rows: GridRowsProp = [{ id: 1 }];

const columns: GridColDef[] = [{ field: 'id' }, { field: 'idBis' }];

describe('<DataGridPro /> - Columns Visibility', () => {
describe('<DataGridPro /> - Columns visibility', () => {
const { render } = createRenderer({ clock: 'fake' });

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const generateDate = (
return rawDate.getTime();
};

describe('<DataGridPro /> - Edit Components', () => {
describe('<DataGridPro /> - Edit components', () => {
const { render, clock } = createRenderer({ clock: 'fake' });

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { spy } from 'sinon';

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

describe('<DataGridPro /> - Events Params', () => {
describe('<DataGridPro /> - Events params', () => {
const { render, clock } = createRenderer();

const baselineProps: { rows: GridRowsProp; columns: GridColDef[] } = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getBasicGridData } from '@mui/x-data-grid-generator';
import { createRenderer, fireEvent, act, userEvent, screen } from '@mui/monorepo/test/utils';
import { getCell, getRow, spyApi } from 'test/utils/helperFn';

describe('<DataGridPro /> - Row Editing', () => {
describe('<DataGridPro /> - Row editing', () => {
const { render, clock } = createRenderer();

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getSelectedRowIds() {
);
}

describe('<DataGridPro /> - Row Selection', () => {
describe('<DataGridPro /> - Row selection', () => {
const { render } = createRenderer();

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const FULL_INITIAL_STATE: GridInitialState = {
},
};

describe('<DataGridPro /> - State Persistence', () => {
describe('<DataGridPro /> - State persistence', () => {
const { render, clock } = createRenderer({ clock: 'fake' });

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const baselineProps: DataGridProProps = {
getRowId: (row) => row.name,
};

describe('<DataGridPro /> - Tree Data', () => {
describe('<DataGridPro /> - Tree data', () => {
const { render, clock } = createRenderer({ clock: 'fake' });

let apiRef: React.MutableRefObject<GridApi>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getColumnHeaderCell, getColumnHeadersTextContent } from 'test/utils/hel

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

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

const baselineProps = {
Expand Down Expand Up @@ -50,7 +50,7 @@ describe('<DataGrid /> - Column Headers', () => {
});
});

describe('Column Menu', () => {
describe('Column menu', () => {
it('should allow to hide column', () => {
render(
<div style={{ width: 300, height: 300 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getCell, getActiveCell, getColumnHeaderCell } from 'test/utils/helperFn

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

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

const baselineProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const rows: GridRowsProp = [{ id: 1, idBis: 1 }];

const columns: GridColDef[] = [{ field: 'id' }, { field: 'idBis' }];

describe('<DataGridPro /> - Columns Visibility', () => {
describe('<DataGridPro /> - Columns visibility', () => {
const { render } = createRenderer();

function TestDataGrid(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useBasicDemoData } from '@mui/x-data-grid-generator';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import { getColumnHeaderCell, getColumnValues, getCell, getRow, sleep } from 'test/utils/helperFn';

describe('<DataGrid /> - Layout & Warnings', () => {
describe('<DataGrid /> - Layout & warnings', () => {
const { clock, render } = createRenderer();

const baselineProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getColumnValues, sleep } from 'test/utils/helperFn';

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

describe('<DataGrid /> - Quick Filter', () => {
describe('<DataGrid /> - Quick filter', () => {
const { render, clock } = createRenderer();

const baselineProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function getSelectedRowIds() {
);
}

describe('<DataGrid /> - Row Selection', () => {
describe('<DataGrid /> - Row selection', () => {
const { render, clock } = createRenderer();

const defaultData = getBasicGridData(4, 2);
Expand Down

0 comments on commit 0666b40

Please sign in to comment.