diff --git a/spec/system/v2_lesson_project_submissions/add_submission_spec.rb b/spec/system/v2_lesson_project_submissions/add_submission_spec.rb index 9370dea9b3..01d14b99b2 100644 --- a/spec/system/v2_lesson_project_submissions/add_submission_spec.rb +++ b/spec/system/v2_lesson_project_submissions/add_submission_spec.rb @@ -32,10 +32,11 @@ context 'when setting a submission as private' do it 'will display the submission for the submission owner but not for other users' do - form = Pages::ProjectSubmissions::Form.new.open.fill_in - - form.v2_make_private - form.submit + wait_for_turbo_frame("project-submissions_lesson_#{lesson.id}") do + form = Pages::ProjectSubmissions::Form.new.open.fill_in + form.v2_make_private + form.submit + end within(:test_id, 'submissions-list') do page.driver.refresh