From b008fac0e5e39e305aa90f333c030773ef5c23cf Mon Sep 17 00:00:00 2001 From: ahmed-mgd Date: Tue, 26 Nov 2024 13:45:53 -0500 Subject: [PATCH] Add sleep for deleting file test --- apps/dashboard/test/system/remote_files_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dashboard/test/system/remote_files_test.rb b/apps/dashboard/test/system/remote_files_test.rb index b2bf617c5a..399021af79 100644 --- a/apps/dashboard/test/system/remote_files_test.rb +++ b/apps/dashboard/test/system/remote_files_test.rb @@ -279,6 +279,9 @@ def setup find('#delete-btn').click find('button.swal2-confirm').click + # Allow time for file to be removed + sleep 1 + # verify app dir deleted according to UI assert_no_selector 'tbody a', exact_text: 'app', wait: 10 assert_no_selector 'tbody a', exact_text: 'foo.txt', wait: 10