Fix flaky officing dashboard spec

It was failing when executed right before midnight due to today's
officer assigments changing during the test.
This commit is contained in:
Javi Martín
2018-08-30 22:17:33 +02:00
parent b787e33883
commit ec3d4c4449

View File

@@ -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)