diff --git a/addons/website_sale/static/tests/tours/website_sale_buy.js b/addons/website_sale/static/tests/tours/website_sale_buy.js index 436e99d4be3..74e4fb58cbc 100644 --- a/addons/website_sale/static/tests/tours/website_sale_buy.js +++ b/addons/website_sale/static/tests/tours/website_sale_buy.js @@ -76,8 +76,18 @@ tour.register('shop_buy_product', { { content: "finish", trigger: '.oe_website_sale:contains("Please make a payment to:")', + // Leave /shop/confirmation to prevent RPC loop to /shop/payment/get_status. + // The RPC could be handled in python while the tour is killed (and the session), leading to crashes + run: function () { + window.location.href = '/aboutus'; // Redirect in JS to avoid the RPC loop (20x1sec) + }, timeout: 30000, - } + }, + { + content: "wait page loaded", + trigger: 'h3:contains("Great products for great people")', + run: function () {}, // it's a check + }, ] );