Commit dd353a28 authored by Jérome Perrin's avatar Jérome Perrin

ui_test_core: trigger a change event after setFile

This is what browsers do when user selects a file.
parent 21147419
Pipeline #30803 failed with stage
......@@ -91,6 +91,7 @@ Selenium.prototype.doSetFile = function(locator, url_filename_mimetype) {
new DataTransfer();
dT.items.add(new File([blob], fileName, {type: mimeType}));
fileField.files = dT.files;
fileField.dispatchEvent(new Event('change', { bubbles: true }));
}));
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment