Create missing shift and choose booth for the officer

This commit is contained in:
Bertocq
2017-10-16 20:29:11 +02:00
committed by Javi Martín
parent 80a9ba8aa7
commit d2e8f84759

View File

@@ -5,6 +5,7 @@ feature "Officing Results", :with_frozen_time do
background do
@poll_officer = create(:poll_officer)
@officer_assignment = create(:poll_officer_assignment, :final, officer: @poll_officer)
create(:poll_shift, officer: @poll_officer, booth: @officer_assignment.booth, date: Time.zone.today)
@poll = @officer_assignment.booth_assignment.poll
@poll.update(ends_at: 1.day.ago)
@question_1 = create(:poll_question, poll: @poll)
@@ -30,6 +31,9 @@ feature "Officing Results", :with_frozen_time do
click_link "Polling officers"
expect(page).to have_content("Poll officing")
set_officing_booth(@officer_assignment.booth)
within("#side_menu") do
click_link "Total recounts and results"
end