', () => {
render(
', () => {
render(
', () => {
render(
', () => {
render(
', () => {
describe('disabled dates', () => {
it('should respect the disablePast prop', () => {
- render(
);
+ render(
);
openPicker({ type: 'date-range', variant: 'desktop', initialFocus: 'start' });
@@ -660,7 +631,7 @@ describe('
', () => {
});
it('should respect the disableFuture prop', () => {
- render(
);
+ render(
);
openPicker({ type: 'date-range', variant: 'desktop', initialFocus: 'start' });
@@ -672,12 +643,7 @@ describe('
', () => {
});
it('should respect the minDate prop', () => {
- render(
-
,
- );
+ render(
);
openPicker({ type: 'date-range', variant: 'desktop', initialFocus: 'start' });
@@ -689,12 +655,7 @@ describe('
', () => {
});
it('should respect the maxDate prop', () => {
- render(
-
,
- );
+ render(
);
openPicker({ type: 'date-range', variant: 'desktop', initialFocus: 'start' });
diff --git a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/describes.DesktopDateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/describes.DesktopDateRangePicker.test.tsx
index 640ac3b6c5f3..8fd06df96b68 100644
--- a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/describes.DesktopDateRangePicker.test.tsx
+++ b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/describes.DesktopDateRangePicker.test.tsx
@@ -29,7 +29,7 @@ describe('
- Describes', () => {
views: ['day'],
}));
- describeConformance(
, () => ({
+ describeConformance(
, () => ({
classes: {} as any,
render,
muiName: 'MuiDesktopDateRangePicker',
diff --git a/packages/x-date-pickers-pro/src/DesktopDateTimeRangePicker/tests/DesktopDateTimeRangePicker.test.tsx b/packages/x-date-pickers-pro/src/DesktopDateTimeRangePicker/tests/DesktopDateTimeRangePicker.test.tsx
index 078ffbc61c0b..228a8728d448 100644
--- a/packages/x-date-pickers-pro/src/DesktopDateTimeRangePicker/tests/DesktopDateTimeRangePicker.test.tsx
+++ b/packages/x-date-pickers-pro/src/DesktopDateTimeRangePicker/tests/DesktopDateTimeRangePicker.test.tsx
@@ -18,7 +18,7 @@ describe('
', () => {
describe('value selection', () => {
it('should allow to select range within the same day', () => {
- render(
);
+ render(
);
openPicker({ type: 'date-time-range', variant: 'desktop', initialFocus: 'start' });
@@ -43,7 +43,7 @@ describe('
', () => {
describe('disabled dates', () => {
it('should respect the "disablePast" prop', () => {
- render(
);
+ render(
);
expect(screen.getByRole('gridcell', { name: '8' })).to.have.attribute('disabled');
expect(screen.getByRole('gridcell', { name: '9' })).to.have.attribute('disabled');
@@ -68,7 +68,6 @@ describe('
', () => {
it('should respect the "disablePast" prop combined with "referenceDate"', () => {
render(
', () => {
});
it('should respect the "disableFuture" prop', () => {
- render(
);
+ render(
);
expect(screen.getByRole('gridcell', { name: '9' })).not.to.have.attribute('disabled');
expect(screen.getByRole('gridcell', { name: '10' })).not.to.have.attribute('disabled');
@@ -113,7 +112,6 @@ describe('
', () => {
it('should respect the "disableFuture" prop combined with "referenceDate"', () => {
render(
', () => {
it('should respect the "minDateTime" prop', () => {
render(
', () => {
it('should respect the "maxDateTime" prop', () => {
render(
- Describes', () => {
variant: 'desktop',
}));
- describeConformance(
, () => ({
+ describeConformance(
, () => ({
classes: {} as any,
render,
muiName: 'MuiDesktopDateTimeRangePicker',
diff --git a/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/MobileDateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/MobileDateRangePicker.test.tsx
index 3d4a95698bb5..aa6c2746d877 100644
--- a/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/MobileDateRangePicker.test.tsx
+++ b/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/MobileDateRangePicker.test.tsx
@@ -19,18 +19,20 @@ describe('
', () => {
it('should render the input with a given `name` when `SingleInputDateRangeField` is used', () => {
// Test with v7 input
const { unmount } = render(
-
,
+
,
);
expect(screen.getByRole
('textbox', { hidden: true }).name).to.equal('test');
unmount();
// Test with v6 input
- render();
+ render(
+ ,
+ );
expect(screen.getByRole('textbox').name).to.equal('test');
});
});
@@ -39,9 +41,7 @@ describe('', () => {
it('should open when focusing the start input', async () => {
const onOpen = spy();
- const { user } = render(
- ,
- );
+ const { user } = render();
await openPicker({
type: 'date-range',
@@ -57,9 +57,7 @@ describe('', () => {
it('should open when focusing the end input', async () => {
const onOpen = spy();
- const { user } = render(
- ,
- );
+ const { user } = render();
await openPicker({
type: 'date-range',
@@ -83,7 +81,6 @@ describe('', () => {
const { user } = render(
', () => {
const { user } = render(
', () => {
const { user } = render(
', () => {
const { user } = render(
', () => {
const { user } = render(
', () => {
const { user } = render(
', () => {
const { user } = render(
', () => {
});
it('should correctly set focused styles when input is focused', () => {
- render();
+ render();
const startSectionsContainer = getFieldSectionsContainer();
fireEvent.focus(startSectionsContainer);
diff --git a/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/describes.MobileDateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/describes.MobileDateRangePicker.test.tsx
index 3410aec62f20..981bd8819f28 100644
--- a/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/describes.MobileDateRangePicker.test.tsx
+++ b/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/describes.MobileDateRangePicker.test.tsx
@@ -29,7 +29,7 @@ describe(' - Describes', () => {
variant: 'mobile',
}));
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
render,
muiName: 'MuiMobileDateRangePicker',
diff --git a/packages/x-date-pickers-pro/src/MobileDateTimeRangePicker/tests/describes.MobileDateTimeRangePicker.test.tsx b/packages/x-date-pickers-pro/src/MobileDateTimeRangePicker/tests/describes.MobileDateTimeRangePicker.test.tsx
index 06f204cc0cf6..e0ba6d9c933a 100644
--- a/packages/x-date-pickers-pro/src/MobileDateTimeRangePicker/tests/describes.MobileDateTimeRangePicker.test.tsx
+++ b/packages/x-date-pickers-pro/src/MobileDateTimeRangePicker/tests/describes.MobileDateTimeRangePicker.test.tsx
@@ -31,7 +31,7 @@ describe(' - Describes', () => {
variant: 'mobile',
}));
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
render,
muiName: 'MuiMobileDateTimeRangePicker',
diff --git a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/describes.MultiInputDateRangeField.test.tsx b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/describes.MultiInputDateRangeField.test.tsx
index f9bc34a2c12b..e31e38194f11 100644
--- a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/describes.MultiInputDateRangeField.test.tsx
+++ b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/describes.MultiInputDateRangeField.test.tsx
@@ -11,7 +11,7 @@ import { describeConformance } from 'test/utils/describeConformance';
describe('', () => {
const { render, clock } = createPickerRenderer({ clock: 'fake' });
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: 'div',
render,
diff --git a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/describes.MultiInputDateTimeRangeField.test.tsx b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/describes.MultiInputDateTimeRangeField.test.tsx
index 1ece3e03f108..ee2d25bd8511 100644
--- a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/describes.MultiInputDateTimeRangeField.test.tsx
+++ b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/describes.MultiInputDateTimeRangeField.test.tsx
@@ -11,7 +11,7 @@ import { describeConformance } from 'test/utils/describeConformance';
describe('', () => {
const { render, clock } = createPickerRenderer({ clock: 'fake' });
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: 'div',
render,
diff --git a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/describes.MultiInputTimeRangeField.test.tsx b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/describes.MultiInputTimeRangeField.test.tsx
index 16dff90eca73..2f9958ab7b04 100644
--- a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/describes.MultiInputTimeRangeField.test.tsx
+++ b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/describes.MultiInputTimeRangeField.test.tsx
@@ -11,7 +11,7 @@ import { describeConformance } from 'test/utils/describeConformance';
describe('', () => {
const { render, clock } = createPickerRenderer({ clock: 'fake' });
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: 'div',
render,
diff --git a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/describes.SingleInputDateRangeField.test.tsx b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/describes.SingleInputDateRangeField.test.tsx
index d3f159341ff5..0ea6d575027c 100644
--- a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/describes.SingleInputDateRangeField.test.tsx
+++ b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/describes.SingleInputDateRangeField.test.tsx
@@ -7,7 +7,7 @@ import { describeConformance } from 'test/utils/describeConformance';
describe(' - Describes', () => {
const { render, clock } = createPickerRenderer({ clock: 'fake' });
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: PickersTextField,
render,
diff --git a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/tests/describes.SingleInputDateTimeRangeField.test.tsx b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/tests/describes.SingleInputDateTimeRangeField.test.tsx
index 308e4d90360e..efea02bb765d 100644
--- a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/tests/describes.SingleInputDateTimeRangeField.test.tsx
+++ b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/tests/describes.SingleInputDateTimeRangeField.test.tsx
@@ -6,7 +6,7 @@ import { describeConformance } from 'test/utils/describeConformance';
describe(' - Describes', () => {
const { render, clock } = createPickerRenderer({ clock: 'fake' });
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: 'div',
render,
diff --git a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/tests/describes.SingleInputTimeRangeField.test.tsx b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/tests/describes.SingleInputTimeRangeField.test.tsx
index bdf4c2eda8f9..934c3903ae19 100644
--- a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/tests/describes.SingleInputTimeRangeField.test.tsx
+++ b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/tests/describes.SingleInputTimeRangeField.test.tsx
@@ -6,7 +6,7 @@ import { describeConformance } from 'test/utils/describeConformance';
describe(' - Describes', () => {
const { render, clock } = createPickerRenderer({ clock: 'fake' });
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: 'div',
render,
diff --git a/packages/x-date-pickers/src/DateField/tests/describes.DateField.test.tsx b/packages/x-date-pickers/src/DateField/tests/describes.DateField.test.tsx
index 9ac060d09021..b5fdeb6d272a 100644
--- a/packages/x-date-pickers/src/DateField/tests/describes.DateField.test.tsx
+++ b/packages/x-date-pickers/src/DateField/tests/describes.DateField.test.tsx
@@ -21,7 +21,7 @@ describe(' - Describes', () => {
componentFamily: 'field',
}));
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: PickersTextField,
render,
diff --git a/packages/x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx b/packages/x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx
index 4f46b80c9709..3ad845d85883 100644
--- a/packages/x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx
+++ b/packages/x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx
@@ -12,7 +12,7 @@ describe('', () => {
const originalMatchMedia = window.matchMedia;
window.matchMedia = stubMatchMedia(false);
- render();
+ render();
expect(screen.getByLabelText(/Choose date/)).to.have.class(pickersInputBaseClasses.input);
diff --git a/packages/x-date-pickers/src/DateTimeField/tests/describes.DateTimeField.test.tsx b/packages/x-date-pickers/src/DateTimeField/tests/describes.DateTimeField.test.tsx
index 57ee37114d1b..2ac6de801e45 100644
--- a/packages/x-date-pickers/src/DateTimeField/tests/describes.DateTimeField.test.tsx
+++ b/packages/x-date-pickers/src/DateTimeField/tests/describes.DateTimeField.test.tsx
@@ -21,7 +21,7 @@ describe(' - Describes', () => {
componentFamily: 'field',
}));
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: PickersTextField,
render,
diff --git a/packages/x-date-pickers/src/DateTimePicker/tests/DateTimePicker.test.tsx b/packages/x-date-pickers/src/DateTimePicker/tests/DateTimePicker.test.tsx
index 94bfd89d1760..933f61c48f16 100644
--- a/packages/x-date-pickers/src/DateTimePicker/tests/DateTimePicker.test.tsx
+++ b/packages/x-date-pickers/src/DateTimePicker/tests/DateTimePicker.test.tsx
@@ -12,7 +12,7 @@ describe('', () => {
const originalMatchMedia = window.matchMedia;
window.matchMedia = stubMatchMedia(false);
- render();
+ render();
expect(screen.getByLabelText(/Choose date/)).to.have.class(pickersInputBaseClasses.input);
diff --git a/packages/x-date-pickers/src/DesktopTimePicker/tests/describes.DesktopTimePicker.test.tsx b/packages/x-date-pickers/src/DesktopTimePicker/tests/describes.DesktopTimePicker.test.tsx
index 7d4652b6c4df..8cb34d2fcf85 100644
--- a/packages/x-date-pickers/src/DesktopTimePicker/tests/describes.DesktopTimePicker.test.tsx
+++ b/packages/x-date-pickers/src/DesktopTimePicker/tests/describes.DesktopTimePicker.test.tsx
@@ -30,7 +30,7 @@ describe(' - Describes', () => {
variant: 'desktop',
}));
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
render,
muiName: 'MuiDesktopTimePicker',
diff --git a/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx b/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx
index 8491613b2622..a495f68d1c6c 100644
--- a/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx
+++ b/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx
@@ -25,12 +25,7 @@ describe('', () => {
it('allows to change only year', () => {
const onChangeMock = spy();
render(
- ,
+ ,
);
fireEvent.click(screen.getByLabelText(/switch to year view/i));
@@ -43,7 +38,6 @@ describe('', () => {
it('allows to select edge years from list', () => {
render(
', () => {
it('prop `onMonthChange` – dispatches callback when months switching', () => {
const onMonthChangeMock = spy();
- render(
- ,
- );
+ render();
fireEvent.click(screen.getByLabelText('Next month'));
expect(onMonthChangeMock.callCount).to.equal(1);
});
it('prop `loading` – displays default loading indicator', () => {
- render();
+ render();
expect(screen.queryAllByMuiTest('day')).to.have.length(0);
expect(screen.getByMuiTest('loading-progress')).toBeVisible();
@@ -76,7 +68,6 @@ describe('', () => {
it('prop `renderLoading` – displays custom loading indicator', () => {
render(
}
open
@@ -91,7 +82,6 @@ describe('', () => {
it('should render custom toolbar component', () => {
render(
,
@@ -105,7 +95,6 @@ describe('', () => {
it('should format toolbar according to `toolbarFormat` prop', () => {
render(
', () => {
});
it('should render the toolbar when `hidden` is `false`', () => {
- render(
- ,
- );
+ render();
expect(screen.getByMuiTest('picker-toolbar')).toBeVisible();
});
@@ -136,7 +119,6 @@ describe('', () => {
it('should render custom day', () => {
render(
', () => {
it('should open when clicking the input', () => {
const onOpen = spy();
- render();
+ render();
fireEvent.click(getFieldSectionsContainer());
@@ -167,14 +149,7 @@ describe('', () => {
function ControlledMobileDatePicker(props) {
const [value, setValue] = React.useState(null);
- return (
-
- );
+ return ;
}
render();
diff --git a/packages/x-date-pickers/src/MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx b/packages/x-date-pickers/src/MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx
index 1e21c3dbc935..3ed41fb66e5d 100644
--- a/packages/x-date-pickers/src/MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx
+++ b/packages/x-date-pickers/src/MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx
@@ -17,7 +17,6 @@ describe('', () => {
it('should render date and time by default', () => {
render(
', () => {
});
it('should render toolbar and tabs by default', () => {
- render(
- ,
- );
+ render();
expect(screen.queryByMuiTest('picker-toolbar-title')).not.to.equal(null);
expect(screen.getByRole('tab', { name: 'pick date' })).not.to.equal(null);
@@ -47,7 +40,6 @@ describe('', () => {
it('can render seconds on view', () => {
render(
', () => {
it('should not render tabs when `hidden` is `true`', () => {
render(
', () => {
it('should not render only toolbar when `hidden` is `true`', () => {
render(
', () => {
it('should open when clicking the input', () => {
const onOpen = spy();
- render();
+ render();
fireEvent.click(getFieldSectionsContainer());
@@ -116,7 +106,6 @@ describe('', () => {
render(
', () => {
it('should open when clicking the input', async () => {
const onOpen = spy();
- const { user } = render(
- ,
- );
+ const { user } = render();
await user.click(getFieldSectionsContainer());
@@ -32,7 +30,6 @@ describe('', () => {
const handleChange = spy();
const { user } = render(
', () => {
const { user } = render(
- Describes', () => {
variant: 'mobile',
}));
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
render,
muiName: 'MuiMobileTimePicker',
diff --git a/packages/x-date-pickers/src/TimeField/tests/describes.TimeField.test.tsx b/packages/x-date-pickers/src/TimeField/tests/describes.TimeField.test.tsx
index 80f331774005..88f95a134af9 100644
--- a/packages/x-date-pickers/src/TimeField/tests/describes.TimeField.test.tsx
+++ b/packages/x-date-pickers/src/TimeField/tests/describes.TimeField.test.tsx
@@ -22,7 +22,7 @@ describe(' - Describes', () => {
componentFamily: 'field',
}));
- describeConformance(, () => ({
+ describeConformance(, () => ({
classes: {} as any,
inheritComponent: PickersTextField,
render,
diff --git a/packages/x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx b/packages/x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx
index 11a7ba2bd055..aaa91fd391fa 100644
--- a/packages/x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx
+++ b/packages/x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx
@@ -12,7 +12,7 @@ describe('', () => {
const originalMatchMedia = window.matchMedia;
window.matchMedia = stubMatchMedia(false);
- render();
+ render();
expect(screen.getByLabelText(/Choose time/)).to.have.class(pickersInputBaseClasses.input);
diff --git a/test/e2e/fixtures/DatePicker/BasicDesktopDatePicker.tsx b/test/e2e/fixtures/DatePicker/BasicDesktopDatePicker.tsx
index 992dd6244777..cdf3be6e2d0f 100644
--- a/test/e2e/fixtures/DatePicker/BasicDesktopDatePicker.tsx
+++ b/test/e2e/fixtures/DatePicker/BasicDesktopDatePicker.tsx
@@ -7,7 +7,6 @@ export default function BasicDesktopDatePicker() {
return (
-
+
);
}
diff --git a/test/e2e/fixtures/DatePicker/BasicDesktopDateTimePicker.tsx b/test/e2e/fixtures/DatePicker/BasicDesktopDateTimePicker.tsx
index f1f8dc403abf..13861f2069cd 100644
--- a/test/e2e/fixtures/DatePicker/BasicDesktopDateTimePicker.tsx
+++ b/test/e2e/fixtures/DatePicker/BasicDesktopDateTimePicker.tsx
@@ -6,7 +6,7 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
export default function BasicDesktopDateTimePicker() {
return (
-
+
);
}
diff --git a/test/e2e/fixtures/DatePicker/BasicMobileDatePicker.tsx b/test/e2e/fixtures/DatePicker/BasicMobileDatePicker.tsx
index 7b869f691654..67d126d5eea1 100644
--- a/test/e2e/fixtures/DatePicker/BasicMobileDatePicker.tsx
+++ b/test/e2e/fixtures/DatePicker/BasicMobileDatePicker.tsx
@@ -6,7 +6,7 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
export default function BasicMobileDatePicker() {
return (
-
+
);
}
diff --git a/test/e2e/fixtures/DatePicker/DesktopDatePickerFormV7.tsx b/test/e2e/fixtures/DatePicker/DesktopDatePickerFormV7.tsx
index 6cc1c44fd5a9..490505885e1c 100644
--- a/test/e2e/fixtures/DatePicker/DesktopDatePickerFormV7.tsx
+++ b/test/e2e/fixtures/DatePicker/DesktopDatePickerFormV7.tsx
@@ -17,7 +17,6 @@ export default function DesktopDatePickerFormV7() {
label="Desktop Date Picker"
name="startDate"
defaultValue={dayjs('2022-04-17')}
- enableAccessibleFieldDOMStructure
/>
{submittedDate && }
diff --git a/test/e2e/fixtures/DatePicker/ReadonlyDesktopDateRangePickerSingleV7.tsx b/test/e2e/fixtures/DatePicker/ReadonlyDesktopDateRangePickerSingleV7.tsx
index 766693016800..2bb6af77ba8c 100644
--- a/test/e2e/fixtures/DatePicker/ReadonlyDesktopDateRangePickerSingleV7.tsx
+++ b/test/e2e/fixtures/DatePicker/ReadonlyDesktopDateRangePickerSingleV7.tsx
@@ -8,7 +8,6 @@ export default function ReadonlyDesktopDateRangePickerSingleV7() {
return (
diff --git a/test/e2e/fixtures/DatePicker/SingleDesktopDateRangePickerWithTZ.tsx b/test/e2e/fixtures/DatePicker/SingleDesktopDateRangePickerWithTZ.tsx
index 0f920bf2aa9b..8eb717e0c3e2 100644
--- a/test/e2e/fixtures/DatePicker/SingleDesktopDateRangePickerWithTZ.tsx
+++ b/test/e2e/fixtures/DatePicker/SingleDesktopDateRangePickerWithTZ.tsx
@@ -14,7 +14,6 @@ export default function BasicDesktopDateRangePicker() {
return (
diff --git a/test/utils/pickers/describeRangeValidation/testTextFieldKeyboardRangeValidation.tsx b/test/utils/pickers/describeRangeValidation/testTextFieldKeyboardRangeValidation.tsx
index c25c09224a9a..3d0c49c30f1a 100644
--- a/test/utils/pickers/describeRangeValidation/testTextFieldKeyboardRangeValidation.tsx
+++ b/test/utils/pickers/describeRangeValidation/testTextFieldKeyboardRangeValidation.tsx
@@ -29,7 +29,7 @@ export const testTextFieldKeyboardRangeValidation: DescribeRangeValidationTestSu
describe('text field keyboard:', () => {
it('should not accept end date prior to start state', () => {
const onErrorMock = spy();
- render();
+ render();
expect(onErrorMock.callCount).to.equal(0);
act(() => {
@@ -53,7 +53,6 @@ export const testTextFieldKeyboardRangeValidation: DescribeRangeValidationTestSu
const onErrorMock = spy();
const { setProps } = render(
adapterToUse.isAfter(date, adapterToUse.date('2018-03-11'))}
/>,
@@ -100,7 +99,7 @@ export const testTextFieldKeyboardRangeValidation: DescribeRangeValidationTestSu
it('should apply disablePast', function test() {
const onErrorMock = spy();
const now = adapterToUse.date();
- render();
+ render();
let past: null | typeof now = null;
if (withDate) {
@@ -140,9 +139,7 @@ export const testTextFieldKeyboardRangeValidation: DescribeRangeValidationTestSu
it('should apply disableFuture', function test() {
const onErrorMock = spy();
const now = adapterToUse.date();
- render(
- ,
- );
+ render();
let future: null | typeof now = null;
@@ -187,13 +184,7 @@ export const testTextFieldKeyboardRangeValidation: DescribeRangeValidationTestSu
}
const onErrorMock = spy();
- render(
- ,
- );
+ render();
act(() => {
[adapterToUse.date('2018-03-09'), adapterToUse.date('2018-03-10')].forEach(
@@ -230,13 +221,7 @@ export const testTextFieldKeyboardRangeValidation: DescribeRangeValidationTestSu
}
const onErrorMock = spy();
- render(
- ,
- );
+ render();
act(() => {
[adapterToUse.date('2018-03-15'), adapterToUse.date('2018-03-17')].forEach(
@@ -266,11 +251,7 @@ export const testTextFieldKeyboardRangeValidation: DescribeRangeValidationTestSu
const onErrorMock = spy();
render(
- ,
+ ,
);
act(() => {
@@ -310,11 +291,7 @@ export const testTextFieldKeyboardRangeValidation: DescribeRangeValidationTestSu
const onErrorMock = spy();
render(
- ,
+ ,
);
act(() => {
diff --git a/test/utils/pickers/describeRangeValidation/testTextFieldRangeValidation.tsx b/test/utils/pickers/describeRangeValidation/testTextFieldRangeValidation.tsx
index 7d78327e23ab..3bc1182de0b7 100644
--- a/test/utils/pickers/describeRangeValidation/testTextFieldRangeValidation.tsx
+++ b/test/utils/pickers/describeRangeValidation/testTextFieldRangeValidation.tsx
@@ -30,7 +30,6 @@ export const testTextFieldRangeValidation: DescribeRangeValidationTestSuite = (
const onErrorMock = spy();
render(
,
@@ -66,7 +64,6 @@ export const testTextFieldRangeValidation: DescribeRangeValidationTestSuite = (
const onErrorMock = spy();
const { setProps } = render(
adapterToUse.isAfter(date, adapterToUse.date('2018-03-10'))}
@@ -113,7 +110,6 @@ export const testTextFieldRangeValidation: DescribeRangeValidationTestSuite = (
const onErrorMock = spy();
const { setProps } = render(
@@ -160,7 +156,6 @@ export const testTextFieldRangeValidation: DescribeRangeValidationTestSuite = (
const onErrorMock = spy();
const { setProps } = render(
@@ -206,7 +201,7 @@ export const testTextFieldRangeValidation: DescribeRangeValidationTestSuite = (
let now;
function WithFakeTimer(props) {
now = adapterToUse.date();
- return ;
+ return ;
}
const { setProps } = render();
@@ -244,7 +239,7 @@ export const testTextFieldRangeValidation: DescribeRangeValidationTestSuite = (
let now;
function WithFakeTimer(props) {
now = adapterToUse.date();
- return ;
+ return ;
}
const { setProps } = render();
@@ -286,7 +281,6 @@ export const testTextFieldRangeValidation: DescribeRangeValidationTestSuite = (
const onErrorMock = spy();
const { setProps } = render(
@@ -55,7 +54,6 @@ export const testTextFieldValidation: DescribeValidationTestSuite = (ElementToTe
const onErrorMock = spy();
const { setProps } = render(
adapterToUse.getYear(date) === 2018}
@@ -82,7 +80,6 @@ export const testTextFieldValidation: DescribeValidationTestSuite = (ElementToTe
const onErrorMock = spy();
const { setProps } = render(
adapterToUse.getMonth(date) === 2}
value={adapterToUse.date('2018-03-12')}
@@ -113,7 +110,6 @@ export const testTextFieldValidation: DescribeValidationTestSuite = (ElementToTe
const onErrorMock = spy();
const { setProps } = render(
{
let comparingValue = adapterToUse.getHours(value);
@@ -165,7 +161,7 @@ export const testTextFieldValidation: DescribeValidationTestSuite = (ElementToTe
let now;
function WithFakeTimer(props: any) {
now = adapterToUse.date();
- return ;
+ return ;
}
const onErrorMock = spy();
@@ -198,7 +194,7 @@ export const testTextFieldValidation: DescribeValidationTestSuite = (ElementToTe
let now;
function WithFakeTimer(props: any) {
now = adapterToUse.date();
- return ;
+ return ;
}
const onErrorMock = spy();
@@ -229,7 +225,6 @@ export const testTextFieldValidation: DescribeValidationTestSuite = (ElementToTe
const onErrorMock = spy();
const { setProps } = render(
= (
external label
= (
render(
= (
render(
= (
render(
= (
render(
= (
render(
= (
render(
describe('Picker open / close lifecycle', () => {
it('should not open on mount if `props.open` is false', () => {
- render();
+ render();
expect(screen.queryByRole(viewWrapperRole)).to.equal(null);
});
it('should open on mount if `prop.open` is true', () => {
- render();
+ render();
expect(screen.queryByRole(viewWrapperRole)).toBeVisible();
});
it('should not open when `prop.disabled` is true ', () => {
const onOpen = spy();
- render();
+ render();
openPicker(pickerParams);
expect(onOpen.callCount).to.equal(0);
@@ -41,7 +41,7 @@ export const testPickerOpenCloseLifeCycle: DescribeValueTestSuite
it('should not open when `prop.readOnly` is true ', () => {
const onOpen = spy();
- render();
+ render();
openPicker(pickerParams);
expect(onOpen.callCount).to.equal(0);
@@ -298,7 +298,6 @@ export const testPickerOpenCloseLifeCycle: DescribeValueTestSuite
render(
render(
const onAccept = spy();
const onClose = spy();
- render(
- ,
- );
+ render();
// Dismiss the picker
fireEvent.keyDown(document.body, { key: 'Escape' });
diff --git a/test/utils/pickers/describeValue/testShortcuts.tsx b/test/utils/pickers/describeValue/testShortcuts.tsx
index ae14f1ddc801..1e77be81334a 100644
--- a/test/utils/pickers/describeValue/testShortcuts.tsx
+++ b/test/utils/pickers/describeValue/testShortcuts.tsx
@@ -28,7 +28,6 @@ export const testShortcuts: DescribeValueTestSuite = (ElementToTe
render(
= (ElementToTe
render(
= (ElementToTe
render(