Fix test for picktime
Fix tests for https://github.com/openSUSE/osem/pull/2391
This commit is contained in:
parent
9959b1853b
commit
51b6606279
1 changed files with 8 additions and 0 deletions
|
|
@ -50,6 +50,14 @@ feature Conference do
|
||||||
fill_in 'conference_title', with: 'New Con'
|
fill_in 'conference_title', with: 'New Con'
|
||||||
fill_in 'conference_short_title', with: ''
|
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
|
page.accept_alert do
|
||||||
click_button 'Update Conference'
|
click_button 'Update Conference'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue