diff --git a/spec/features/deposit_agreements_spec.rb b/spec/features/deposit_agreements_spec.rb index 6cb1150a8a..f477f1e775 100644 --- a/spec/features/deposit_agreements_spec.rb +++ b/spec/features/deposit_agreements_spec.rb @@ -36,6 +36,7 @@ within('div#add-files') do attach_file("files[]", "#{Hyrax::Engine.root}/spec/fixtures/image.jp2", visible: false) end + expect(page).to have_content('image.jp2') # Ensures async upload finishes expect(page).not_to have_selector('#agreement') expect(page).to have_selector('input[name="save_with_files"]:not([disabled])')