update tests with correct locale date format

This commit is contained in:
Simone Taeggi 2022-07-21 11:06:06 +02:00
parent def292d7cd
commit d535d3bb72
2 changed files with 4 additions and 4 deletions

View File

@ -417,7 +417,7 @@ exports[`DateTimePicker snapshots the component 1`] = `
>
<button
aria-disabled="false"
aria-label="Date picker, current is 13/10/2021"
aria-label="Date picker, current is 10/13/2021"
class="c13"
type="button"
>
@ -448,7 +448,7 @@ exports[`DateTimePicker snapshots the component 1`] = `
id="datepicker-1"
name="datetimepicker"
placeholder="1/1/1970"
value="13/10/2021"
value="10/13/2021"
/>
</div>
</div>

View File

@ -38,7 +38,7 @@ describe('DateTimePicker', () => {
expect(screen.getByText('13:45')).toBeInTheDocument();
const datepicker = screen.getByTestId('datetimepicker-date');
expect(datepicker.value).toBe('13/10/2021');
expect(datepicker.value).toBe('10/13/2021');
});
it('should rerender a new value passed as props', () => {
@ -70,7 +70,7 @@ describe('DateTimePicker', () => {
const datepicker = screen.getByTestId('datetimepicker-date');
expect(datepicker.value).toBe('4/10/2021');
expect(datepicker.value).toBe('10/4/2021');
});
it('should rerender an empty value if it is passed as props', () => {