Skip to content

Commit

Permalink
Update vendorized flatpickr to fix localization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Mar 13, 2022
1 parent 57b819e commit 7f8c831
Show file tree
Hide file tree
Showing 2 changed files with 958 additions and 396 deletions.
1 change: 0 additions & 1 deletion spec/integration/widgets/datetimepicker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
visit new_path(model_name: 'field_test', field_test: {datetime_field: '2021-01-02T03:45:00'})
expect(find('[name="field_test[datetime_field]"]', visible: false).value).to eq '2021-01-02T03:45:00'
expect(find('#field_test_datetime_field + input').value).to eq 'samedi 02 janvier 2021 03:45'
pending 'flatpickr date parsing does not work well with a localized string'
find('#field_test_datetime_field + input').set 'mercredi 03 février 2021 04:55'
expect(find('[name="field_test[datetime_field]"]', visible: false).value).to eq '2021-02-03T04:55:00'
end
Expand Down
Loading

0 comments on commit 7f8c831

Please sign in to comment.