mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Fix flaky test
This commit is contained in:
@@ -116,6 +116,7 @@ describe 'Upload attachment to forum message', js: true do
|
||||
click_on "Edit"
|
||||
end
|
||||
|
||||
page.find("[data-qa-selector='op-attachments']") # wait for attachments element to be displayed before starting drag and drop
|
||||
script = <<~JS
|
||||
const event = new DragEvent('dragenter');
|
||||
document.body.dispatchEvent(event);
|
||||
|
||||
Reference in New Issue
Block a user