Skip to content

Commit e3103d5

Browse files
committed
Avoid race condition in system specs
1 parent 7ccaaf6 commit e3103d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/system/external_user_statistics_system_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
fill_in('email', with: user.email)
2323
fill_in('password', with: password)
2424
click_button(I18n.t('sessions.new.link'))
25+
wait_for_ajax
2526
allow_any_instance_of(LtiHelper).to receive(:lti_outcome_service?).and_return(true)
2627
visit(statistics_external_user_exercise_path(id: exercise.id, external_user_id: learner.id))
2728
end

0 commit comments

Comments
 (0)