From 0666b407f5748a30bde491660e2060f41fa076f2 Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Date: Fri, 22 Sep 2023 12:24:39 +0200 Subject: [PATCH] [test] Name test suites according to sentence case (#10429) Co-authored-by: Lukas --- .../x-data-grid-premium/src/tests/DataGridPremium.test.tsx | 2 +- .../src/tests/aggregation.DataGridPremium.test.tsx | 4 ++-- .../src/tests/rowGrouping.DataGridPremium.test.tsx | 2 +- .../src/tests/statePersistence.DataGridPremium.test.tsx | 2 +- .../src/tests/cellEditing.DataGridPro.test.tsx | 2 +- .../src/tests/columnHeaders.DataGridPro.test.tsx | 2 +- .../src/tests/columnSpanning.DataGridPro.test.tsx | 2 +- .../src/tests/columnsVisibility.DataGridPro.test.tsx | 2 +- .../src/tests/editComponents.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/events.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx | 2 +- .../src/tests/rowSelection.DataGridPro.test.tsx | 2 +- .../src/tests/statePersistence.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx | 2 +- .../x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx | 4 ++-- .../x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx | 2 +- .../x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx | 2 +- .../x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx | 2 +- .../grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx | 2 +- 20 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/grid/x-data-grid-premium/src/tests/DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/DataGridPremium.test.tsx index 756e03503886..09521a4d2b07 100644 --- a/packages/grid/x-data-grid-premium/src/tests/DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/DataGridPremium.test.tsx @@ -12,7 +12,7 @@ import { getColumnValues } from 'test/utils/helperFn'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); -describe(' - Quick Filter', () => { +describe(' - Quick filter', () => { const { render } = createRenderer(); const baselineProps = { diff --git a/packages/grid/x-data-grid-premium/src/tests/aggregation.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/aggregation.DataGridPremium.test.tsx index 3c64e8514fb3..8b4d4509078a 100644 --- a/packages/grid/x-data-grid-premium/src/tests/aggregation.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/aggregation.DataGridPremium.test.tsx @@ -275,7 +275,7 @@ describe(' - Aggregation', () => { }); }); - describe('Tree Data', () => { + describe('Tree data', () => { function TreeDataTest(props: Omit) { return ( - Aggregation', () => { }); }); - describe('Column Menu', () => { + describe('Column menu', () => { it('should render select on aggregable column', () => { render(); diff --git a/packages/grid/x-data-grid-premium/src/tests/rowGrouping.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/rowGrouping.DataGridPremium.test.tsx index 2a03b49efffe..74e7fce53bd9 100644 --- a/packages/grid/x-data-grid-premium/src/tests/rowGrouping.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/rowGrouping.DataGridPremium.test.tsx @@ -69,7 +69,7 @@ const baselineProps: DataGridPremiumProps = { ], }; -describe(' - Row Grouping', () => { +describe(' - Row grouping', () => { const { render, clock } = createRenderer(); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid-premium/src/tests/statePersistence.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/statePersistence.DataGridPremium.test.tsx index 7567a7a2c35a..497722909eb6 100644 --- a/packages/grid/x-data-grid-premium/src/tests/statePersistence.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/statePersistence.DataGridPremium.test.tsx @@ -47,7 +47,7 @@ const FULL_INITIAL_STATE: GridInitialState = { }, }; -describe(' - State Persistence', () => { +describe(' - State persistence', () => { const { render } = createRenderer(); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.test.tsx index 5336b9e2f83e..3edf22299bf8 100644 --- a/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.test.tsx @@ -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(' - Cell Editing', () => { +describe(' - Cell editing', () => { const { render, clock } = createRenderer({ clock: 'fake' }); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid-pro/src/tests/columnHeaders.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columnHeaders.DataGridPro.test.tsx index d40189b6e492..30b10d39465e 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columnHeaders.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columnHeaders.DataGridPro.test.tsx @@ -6,7 +6,7 @@ import { getColumnHeaderCell, getColumnValues } from 'test/utils/helperFn'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); -describe(' - Column Headers', () => { +describe(' - Column headers', () => { const { render, clock } = createRenderer({ clock: 'fake' }); const baselineProps = { diff --git a/packages/grid/x-data-grid-pro/src/tests/columnSpanning.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columnSpanning.DataGridPro.test.tsx index e9454dca917f..ad4632ec1b07 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columnSpanning.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columnSpanning.DataGridPro.test.tsx @@ -6,7 +6,7 @@ import { getActiveCell, getCell, getColumnHeaderCell } from 'test/utils/helperFn const isJSDOM = /jsdom/.test(window.navigator.userAgent); -describe(' - Column Spanning', () => { +describe(' - Column spanning', () => { const { render } = createRenderer({ clock: 'fake' }); const baselineProps = { diff --git a/packages/grid/x-data-grid-pro/src/tests/columnsVisibility.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columnsVisibility.DataGridPro.test.tsx index 824cdbe06c80..48c90c678a34 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columnsVisibility.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columnsVisibility.DataGridPro.test.tsx @@ -21,7 +21,7 @@ const rows: GridRowsProp = [{ id: 1 }]; const columns: GridColDef[] = [{ field: 'id' }, { field: 'idBis' }]; -describe(' - Columns Visibility', () => { +describe(' - Columns visibility', () => { const { render } = createRenderer({ clock: 'fake' }); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid-pro/src/tests/editComponents.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/editComponents.DataGridPro.test.tsx index 62b77df7e944..f2cac621b16e 100644 --- a/packages/grid/x-data-grid-pro/src/tests/editComponents.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/editComponents.DataGridPro.test.tsx @@ -37,7 +37,7 @@ const generateDate = ( return rawDate.getTime(); }; -describe(' - Edit Components', () => { +describe(' - Edit components', () => { const { render, clock } = createRenderer({ clock: 'fake' }); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid-pro/src/tests/events.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/events.DataGridPro.test.tsx index 9190215e67b5..83e4b6ae985d 100644 --- a/packages/grid/x-data-grid-pro/src/tests/events.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/events.DataGridPro.test.tsx @@ -20,7 +20,7 @@ import { spy } from 'sinon'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); -describe(' - Events Params', () => { +describe(' - Events params', () => { const { render, clock } = createRenderer(); const baselineProps: { rows: GridRowsProp; columns: GridColDef[] } = { diff --git a/packages/grid/x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx index dbd563bbc9f6..7e8a2b7f28d0 100644 --- a/packages/grid/x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx @@ -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(' - Row Editing', () => { +describe(' - Row editing', () => { const { render, clock } = createRenderer(); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx index 0defbac668e3..ed04365c0cf8 100644 --- a/packages/grid/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx @@ -23,7 +23,7 @@ function getSelectedRowIds() { ); } -describe(' - Row Selection', () => { +describe(' - Row selection', () => { const { render } = createRenderer(); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid-pro/src/tests/statePersistence.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/statePersistence.DataGridPro.test.tsx index a039498fff72..737a83f810b5 100644 --- a/packages/grid/x-data-grid-pro/src/tests/statePersistence.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/statePersistence.DataGridPro.test.tsx @@ -79,7 +79,7 @@ const FULL_INITIAL_STATE: GridInitialState = { }, }; -describe(' - State Persistence', () => { +describe(' - State persistence', () => { const { render, clock } = createRenderer({ clock: 'fake' }); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx index f83c86ef62d7..8b206fc60229 100644 --- a/packages/grid/x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx @@ -56,7 +56,7 @@ const baselineProps: DataGridProProps = { getRowId: (row) => row.name, }; -describe(' - Tree Data', () => { +describe(' - Tree data', () => { const { render, clock } = createRenderer({ clock: 'fake' }); let apiRef: React.MutableRefObject; diff --git a/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx index ac6f38480252..c8e01b7bd041 100644 --- a/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx @@ -6,7 +6,7 @@ import { getColumnHeaderCell, getColumnHeadersTextContent } from 'test/utils/hel const isJSDOM = /jsdom/.test(window.navigator.userAgent); -describe(' - Column Headers', () => { +describe(' - Column headers', () => { const { render, clock } = createRenderer({ clock: 'fake' }); const baselineProps = { @@ -50,7 +50,7 @@ describe(' - Column Headers', () => { }); }); - describe('Column Menu', () => { + describe('Column menu', () => { it('should allow to hide column', () => { render(
diff --git a/packages/grid/x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx index 449c975019c0..cb28bda8cdf2 100644 --- a/packages/grid/x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx @@ -6,7 +6,7 @@ import { getCell, getActiveCell, getColumnHeaderCell } from 'test/utils/helperFn const isJSDOM = /jsdom/.test(window.navigator.userAgent); -describe(' - Column Spanning', () => { +describe(' - Column spanning', () => { const { render, clock } = createRenderer({ clock: 'fake' }); const baselineProps = { diff --git a/packages/grid/x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx index a95ee66420f0..e932220f4648 100644 --- a/packages/grid/x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx @@ -11,7 +11,7 @@ const rows: GridRowsProp = [{ id: 1, idBis: 1 }]; const columns: GridColDef[] = [{ field: 'id' }, { field: 'idBis' }]; -describe(' - Columns Visibility', () => { +describe(' - Columns visibility', () => { const { render } = createRenderer(); function TestDataGrid( diff --git a/packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx index af9a37c187e1..a4ea76ef2107 100644 --- a/packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx @@ -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(' - Layout & Warnings', () => { +describe(' - Layout & warnings', () => { const { clock, render } = createRenderer(); const baselineProps = { diff --git a/packages/grid/x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx index 0cb32dc3c6b8..95c1d4002571 100644 --- a/packages/grid/x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx @@ -14,7 +14,7 @@ import { getColumnValues, sleep } from 'test/utils/helperFn'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); -describe(' - Quick Filter', () => { +describe(' - Quick filter', () => { const { render, clock } = createRenderer(); const baselineProps = { diff --git a/packages/grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx index f24c7f694e12..405fb351a60a 100644 --- a/packages/grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx @@ -34,7 +34,7 @@ function getSelectedRowIds() { ); } -describe(' - Row Selection', () => { +describe(' - Row selection', () => { const { render, clock } = createRenderer(); const defaultData = getBasicGridData(4, 2);