Skip to content

Commit 2a7a7b0

Browse files
committed
Further stability improvement on the Flatpickr spec
1 parent be9a75e commit 2a7a7b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/integration/widgets/datetimepicker_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
it 'populates the value selected by the Datetime picker into the hidden_field' do
2323
visit new_path(model_name: 'field_test')
24+
is_expected.to have_css '.form-control.flatpickr-input', visible: false
2425
page.execute_script <<-JS
2526
document.querySelector('#field_test_datetime_field')._flatpickr.setDate('2015-10-08 14:00:00');
2627
JS
@@ -54,7 +55,7 @@
5455
end
5556
end
5657
visit new_path(model_name: 'field_test')
57-
is_expected.to have_text 'New Field test'
58+
is_expected.to have_css '.form-control.flatpickr-input', visible: false
5859
page.execute_script <<-JS
5960
document.querySelector('#field_test_datetime_field')._flatpickr.setDate('2015-10-08 12:34:56');
6061
JS

0 commit comments

Comments
 (0)