Skip to content

Commit

Permalink
EDSC-3937: Fixes datepicker test
Browse files Browse the repository at this point in the history
  • Loading branch information
macrouch committed Jul 12, 2024
1 parent 619108e commit 31f8a32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
tmp
playwright-report
2 changes: 1 addition & 1 deletion static/src/js/components/Datepicker/Datepicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Datepicker extends PureComponent {
timeFormat={false}
utc
value={value}
viewMode={viewMode}
initialViewMode={viewMode}
/>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ describe('TemporalSelectionDropdown component', () => {

// Select the end date
await user.click(endField)
await user.click((await screen.findAllByText('2024')).at(1))
await user.click(await screen.findByText('2024'))
await user.click(await screen.findByText('Jun'))
await user.click(await screen.findByText('15'))
await user.click((await screen.findAllByText('15')).at(1))
expect(endField).toHaveValue(validEndDate)

// Select Recurring
Expand Down

0 comments on commit 31f8a32

Please sign in to comment.