Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Dec 2, 2022
1 parent 5129f01 commit 9615e04
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('<DateField /> - Describes', () => {
setNewValue: (value) => {
const newValue = adapterToUse.addDays(value, 1);
const input = screen.getByRole('textbox');
clickOnInput(input, 5); // Update the day
clickOnInput(input, 10); // Update the day
userEvent.keyPress(input, { key: 'ArrowUp' });
return newValue;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from 'test/utils/pickers-utils';
import { describeValue } from '@mui/x-date-pickers/tests/describeValue';

describe('<DateTimeField /> - Describes', () => {
describe.only('<DateTimeField /> - Describes', () => {
const { render, clock } = createPickerRenderer({ clock: 'fake' });

const { clickOnInput } = buildFieldInteractions({ clock });
Expand Down Expand Up @@ -43,7 +43,7 @@ describe('<DateTimeField /> - Describes', () => {
setNewValue: (value) => {
const newValue = adapterToUse.addDays(value, 1);
const input = screen.getByRole('textbox');
clickOnInput(input, 5); // Update the day
clickOnInput(input, 10); // Update the day
userEvent.keyPress(input, { key: 'ArrowUp' });
return newValue;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('<DesktopNextDatePicker /> - Describes', () => {
);
} else {
const input = screen.getByRole('textbox');
clickOnInput(input, 5); // Update the day
clickOnInput(input, 10); // Update the day
userEvent.keyPress(input, { key: 'ArrowUp' });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('<DesktopNextDateTimePicker /> - Describes', () => {
);
} else {
const input = screen.getByRole('textbox');
clickOnInput(input, 5); // Update the day
clickOnInput(input, 10); // Update the day
userEvent.keyPress(input, { key: 'ArrowUp' });
}

Expand Down

0 comments on commit 9615e04

Please sign in to comment.