[IMP] web_tour: specify timeout per step

RUNNING_TOUR_TIMEOUT is equal to 10 seconds, which sometimes is not enough on
travis and we need a way to increase timeout per step.

Note: Exact same commit was already merged for version 11.0 here: 67e2372
Note 2: this is technically a IMP, not a fix, but I (GED) will accept this, since this should only impact the testing functionality.  Also, this was done in 11.0, so in some sense, it was proved to work.

(PR: #21750)
This commit is contained in:
Ivan Yelizariev
2018-03-14 11:31:55 +01:00
committed by ged-odoo
parent 4252cd7053
commit 9fc44bef83
@@ -457,7 +457,7 @@ return core.Class.extend({
this._stop_running_tour_timeout();
this.running_tour_timeout = setTimeout((function() {
this._consume_tour(tour_name, _.str.sprintf("Tour %s failed at step %s", tour_name, step.trigger));
}).bind(this), RUNNING_TOUR_TIMEOUT + this.running_step_delay);
}).bind(this), (step.timeout || RUNNING_TOUR_TIMEOUT) + this.running_step_delay);
},
_stop_running_tour_timeout: function () {
clearTimeout(this.running_tour_timeout);