diff --git a/tests/frontend/helper.js b/tests/frontend/helper.js index f36e45692..b059f653c 100644 --- a/tests/frontend/helper.js +++ b/tests/frontend/helper.js @@ -158,10 +158,7 @@ var helper = {}; return padName; } - helper.waitFor = function(conditionFunc, _timeoutTime, _intervalTime){ - var timeoutTime = _timeoutTime || 1900; - var intervalTime = _intervalTime || 10; - + helper.waitFor = function(conditionFunc, timeoutTime = 1900, intervalTime = 10) { var deferred = $.Deferred(); const _fail = deferred.fail.bind(deferred);