diff --git a/addons/web/static/src/js/tour.js b/addons/web/static/src/js/tour.js index 7e4eabeedda..2289162732e 100644 --- a/addons/web/static/src/js/tour.js +++ b/addons/web/static/src/js/tour.js @@ -446,12 +446,14 @@ var Tour = { if (next) { setTimeout(function () { + if (Tour.getState()) { Tour.waitNextStep(); - if (state.mode === "test") { - setTimeout(function(){ - Tour.autoNextStep(state.tour, step); - }, Tour.defaultDelay); - } + } + if (state.mode === "test") { + setTimeout(function(){ + Tour.autoNextStep(state.tour, step); + }, Tour.defaultDelay); + } }, next.wait || 0); } else { setTimeout(function(){