Skip to content

Commit

Permalink
Adds lines to make rescued code work
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Dec 9, 2024
1 parent e6613b4 commit c4c06b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dashboard/test/system/remote_files_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,11 @@ def setup
begin
find('tbody a', exact_text: File.basename(src_file), wait: MAX_WAIT)
rescue
find('#upload-btn').click
find('.uppy-Dashboard-AddFiles', wait: MAX_WAIT)
attach_file 'files[]', src_file, visible: false, match: :first
find('.uppy-StatusBar-actionBtn--upload', wait: MAX_WAIT).click

find('tbody a', exact_text: File.basename(src_file), wait: MAX_WAIT)
end
end
Expand Down

0 comments on commit c4c06b9

Please sign in to comment.