Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed May 17, 2024
1 parent 1b38595 commit 4e6d134
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/system/decidim/admin/election_setup_wizard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,12 @@ def valid_census_file
end

def fill_calendar_and_results
fill_in "election_calendar_start_time", with: 12.minutes.from_now.strftime("%d/%m/%Y, %H:%M")
send_keys(:enter)
fill_in "election_calendar_end_time", with: 12.days.from_now.strftime("%d/%m/%Y, %H:%M")
start_time = 12.minutes.from_now.strftime("%Y-%m-%dT%H:%M")
end_time = 12.days.from_now.strftime("%Y-%m-%dT%H:%M")

page.execute_script("document.getElementById('election_calendar_start_time').value = '#{start_time}'")
page.execute_script("document.getElementById('election_calendar_end_time').value = '#{end_time}'")

click_link_or_button "Save and go to the next step"
end
end

0 comments on commit 4e6d134

Please sign in to comment.