Skip to content

Commit

Permalink
Attempt to fix async flakiness in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce authored Oct 31, 2024
1 parent a8ae953 commit 8dde1e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/features/deposit_agreements_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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])')
Expand Down

0 comments on commit 8dde1e0

Please sign in to comment.