Skip to content

Commit

Permalink
test: drag-n-drop is disabled when upload is in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmatus committed Dec 3, 2024
1 parent 655dea1 commit 6a0cd5e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6a0cd5e

Please sign in to comment.