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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user