From 6a0cd5ee6b52b43b91c44a30fec65091816c42c0 Mon Sep 17 00:00:00 2001 From: tomasmatus Date: Tue, 3 Dec 2024 14:26:26 +0100 Subject: [PATCH] test: drag-n-drop is disabled when upload is in progress --- test/check-application | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/check-application b/test/check-application index 322c91c9..a08b03a0 100755 --- a/test/check-application +++ b/test/check-application @@ -2277,6 +2277,19 @@ class TestFiles(testlib.MachineCase): drag_file_event(".fileview-wrapper", 'dragleave') b.wait_not_present(".drag-drop-upload") + # Drag & drop is disabled when upload is in progress + b.click("#upload-file-btn") + b.upload_files("#upload-file-btn + input[type='file']", [big_file]) + b.wait_visible("#upload-file-btn:disabled") + b.wait_not_present(".drag-drop-upload") + drag_file_event(".fileview-wrapper", 'dragenter') + b.wait_not_present(".drag-drop-upload") + drag_file_event(".fileview-wrapper", 'dragleave') + b.wait_not_present(".drag-drop-upload") + b.click("#upload-progress-btn") + b.click(".cancel-button-0") + b.click(".pf-v5-c-alert__action button") + # Change directory and upload b.mouse("[data-item='project']", "dblclick") drag_file_event(".fileview-wrapper", 'dragenter')