Fix flaky test

This commit is contained in:
Christophe Bliard
2023-04-06 08:51:42 +02:00
parent 7c82b4f2bd
commit 59eb308cbb
@@ -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);