Skip to content

Commit

Permalink
MMT-3943: Added a test to ensure the user's date/time is preserved in…
Browse files Browse the repository at this point in the history
… the widget
  • Loading branch information
Christopher Gokey committed Nov 20, 2024
1 parent b8cb2f9 commit dbea26a
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,16 @@ describe('CustomDateTimeWidget', () => {
expect(field).toHaveValue('2023-12-05T00:00:00.000Z')
})
})

describe('When a date has a specific time in the form', () => {
test('shows the date and time', async () => {
setup({
value: '2023-12-05T16:05:59.000Z'
})

const field = await screen.findByPlaceholderText('YYYY-MM-DDTHH:MM:SSZ')

expect(field).toHaveValue('2023-12-05T16:05:59.000Z')
})
})
})

0 comments on commit dbea26a

Please sign in to comment.