Commit 38460e32 authored by Jérome Perrin's avatar Jérome Perrin

ui_test_core: introduce a delay after setFile

We observe in some tests - often with
portal_tests/dms_zuite/testAttachDocument from testFunctionalCore that
sometimes firefox does not submit the form after setFile was used ( at
least, there is no corresponding post request in Z2.log ).

Try to address this by adding a short delay.
parent 3b45cd05
Pipeline #9702 failed with stage
in 0 seconds
......@@ -51,7 +51,10 @@ Selenium.prototype.doSetFile = function(locator, url_and_filename) {
})
.then(
function() {
promiseState = 'resolved';
// Wait a bit, to address some random failures in tests with firefox.
setTimeout(() => {
promiseState = 'resolved';
}, 1000);
},
function(error) {
console.error(error);
......
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