From b314642586814bca0fa90846175cf4b90c94d8f5 Mon Sep 17 00:00:00 2001 From: orangemug Date: Mon, 10 Sep 2018 14:55:45 +0100 Subject: [PATCH] Rollback to setImmediate --- test/functional/util/webdriverio-ext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/util/webdriverio-ext.js b/test/functional/util/webdriverio-ext.js index 866b775..ee35b48 100644 --- a/test/functional/util/webdriverio-ext.js +++ b/test/functional/util/webdriverio-ext.js @@ -46,9 +46,9 @@ try { browser.addCommand('flushReactUpdates', function() { browser.executeAsync(function(done) { // For any events to propogate - process.nextTick(function() { + setImmediate(function() { // For the DOM to be updated. - process.nextTick(done); + setImmediate(done); }) }) })