Create missing shift and choose booth for the officer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user