Switch to setTimeout(fn, 0)

This commit is contained in:
orangemug 2018-09-10 15:09:34 +01:00
parent b314642586
commit be954143c3

View file

@ -46,10 +46,10 @@ try {
browser.addCommand('flushReactUpdates', function() {
browser.executeAsync(function(done) {
// For any events to propogate
setImmediate(function() {
setTimeout(function() {
// For the DOM to be updated.
setImmediate(done);
})
setTimeout(done, 0);
}, 0)
})
})