Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khoidt committed Feb 13, 2024
1 parent 87d33b4 commit 27dde9c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/chronology/ui/DateEditor/DatesInTextSelection.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ describe('DatesInTextSelection', () => {
await act(async () => {
fireEvent.click(addButton)
})
const yearInput = screen.getByPlaceholderText('Year')
const dayInput = screen.getByPlaceholderText('Day')
const monthInput = screen.getByPlaceholderText('Month')
await act(async () => {
fireEvent.change(yearInput, { target: { value: '189' } })
fireEvent.change(dayInput, { target: { value: '18' } })
fireEvent.change(monthInput, { target: { value: '10' } })
})
const saveButton = screen.getByText('Save')
await act(async () => {
Expand All @@ -66,9 +68,11 @@ describe('DatesInTextSelection', () => {
await act(async () => {
fireEvent.click(editButton)
})
const yearInput = screen.getByPlaceholderText('Year')
const dayInput = screen.getByPlaceholderText('Day')
const monthInput = screen.getByPlaceholderText('Month')
await act(async () => {
fireEvent.change(yearInput, { target: { value: '189' } })
fireEvent.change(dayInput, { target: { value: '18' } })
fireEvent.change(monthInput, { target: { value: '10' } })
})
const saveButton = screen.getByText('Save')
await act(async () => {
Expand Down

0 comments on commit 27dde9c

Please sign in to comment.