diff --git a/spec/features/officing/results_spec.rb b/spec/features/officing/results_spec.rb index 56a0aa4d8..1d67cc1a6 100644 --- a/spec/features/officing/results_spec.rb +++ b/spec/features/officing/results_spec.rb @@ -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