diff --git a/apps/dashboard/test/system/remote_files_test.rb b/apps/dashboard/test/system/remote_files_test.rb index aa3b99c4d..f3d89ecb3 100644 --- a/apps/dashboard/test/system/remote_files_test.rb +++ b/apps/dashboard/test/system/remote_files_test.rb @@ -311,6 +311,7 @@ def setup find('tbody a', exact_text: 'foo').click # Need to wait until we're in the new directory before clicking upload assert_no_selector 'tbody a', exact_text: 'foo', wait: MAX_WAIT + sleep 1 find('#upload-btn').click find('.uppy-Dashboard-AddFiles', wait: MAX_WAIT) @@ -319,6 +320,8 @@ def setup attach_file 'files[]', src_file, visible: false, match: :first find('.uppy-StatusBar-actionBtn--upload', wait: MAX_WAIT).click find("#tloading_spinner") + sleep 1 + assert_no_selector("#tloading_spinner") find('tbody a', exact_text: File.basename(src_file), wait: MAX_WAIT) end end