mirror of
https://github.com/strapi/strapi.git
synced 2025-11-09 14:51:29 +00:00
update tests with correct locale date format
This commit is contained in:
parent
def292d7cd
commit
d535d3bb72
@ -417,7 +417,7 @@ exports[`DateTimePicker snapshots the component 1`] = `
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-disabled="false"
|
aria-disabled="false"
|
||||||
aria-label="Date picker, current is 13/10/2021"
|
aria-label="Date picker, current is 10/13/2021"
|
||||||
class="c13"
|
class="c13"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
@ -448,7 +448,7 @@ exports[`DateTimePicker snapshots the component 1`] = `
|
|||||||
id="datepicker-1"
|
id="datepicker-1"
|
||||||
name="datetimepicker"
|
name="datetimepicker"
|
||||||
placeholder="1/1/1970"
|
placeholder="1/1/1970"
|
||||||
value="13/10/2021"
|
value="10/13/2021"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -38,7 +38,7 @@ describe('DateTimePicker', () => {
|
|||||||
expect(screen.getByText('13:45')).toBeInTheDocument();
|
expect(screen.getByText('13:45')).toBeInTheDocument();
|
||||||
const datepicker = screen.getByTestId('datetimepicker-date');
|
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', () => {
|
it('should rerender a new value passed as props', () => {
|
||||||
@ -70,7 +70,7 @@ describe('DateTimePicker', () => {
|
|||||||
|
|
||||||
const datepicker = screen.getByTestId('datetimepicker-date');
|
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', () => {
|
it('should rerender an empty value if it is passed as props', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user