Fix test for picktime

Fix tests for https://github.com/openSUSE/osem/pull/2391
This commit is contained in:
Rahul 2019-03-09 01:47:33 +05:30
parent 9959b1853b
commit 51b6606279

View file

@ -50,6 +50,14 @@ feature Conference do
fill_in 'conference_title', with: 'New Con'
fill_in 'conference_short_title', with: ''
day = Time.zone.today + 10
page
.execute_script("$('#conference-start-datepicker').val('" +
"#{day.strftime('%d/%m/%Y')}')")
page
.execute_script("$('#conference-end-datepicker').val('" +
"#{(day + 7).strftime('%d/%m/%Y')}')")
page.accept_alert do
click_button 'Update Conference'
end