setImmediate -> process.nextTick

This commit is contained in:
orangemug 2018-09-10 14:51:22 +01:00
parent 26ff9f63bb
commit b5fc315b37

View file

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