From ec3d4c4449388506c1184fdc90ceaadc49df5121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 30 Aug 2018 22:17:33 +0200 Subject: [PATCH] Fix flaky officing dashboard spec It was failing when executed right before midnight due to today's officer assigments changing during the test. --- spec/features/officing_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/officing_spec.rb b/spec/features/officing_spec.rb index b2ead66f2..d5e410afb 100644 --- a/spec/features/officing_spec.rb +++ b/spec/features/officing_spec.rb @@ -122,7 +122,7 @@ feature 'Poll Officing' do expect(page).not_to have_css('#moderation_menu') end - scenario 'Officing dashboard available for multiple sessions', :js do + scenario 'Officing dashboard available for multiple sessions', :js, :with_frozen_time do poll = create(:poll) booth = create(:poll_booth) booth_assignment = create(:poll_booth_assignment, poll: poll, booth: booth)