diff --git a/addons/sale/static/tests/tours/sale_signature.js b/addons/sale/static/tests/tours/sale_signature.js index 7d707d5951d..80ebbc362da 100644 --- a/addons/sale/static/tests/tours/sale_signature.js +++ b/addons/sale/static/tests/tours/sale_signature.js @@ -37,6 +37,15 @@ tour.register('sale_signature', { { content: "check it's confirmed", trigger: '#quote_content:contains("Thank You")', + }, { + trigger: '#quote_content', + run: function () { + window.location.href = window.location.origin + '/web'; + }, // Avoid race condition at the end of the tour by returning to the home page. }, + { + trigger: 'nav', + run: function() {}, + } ]); }); diff --git a/addons/test_sale_product_configurators/static/tests/tours/product_configurator_edition_ui.js b/addons/test_sale_product_configurators/static/tests/tours/product_configurator_edition_ui.js index e87707f9954..d24139dd886 100644 --- a/addons/test_sale_product_configurators/static/tests/tours/product_configurator_edition_ui.js +++ b/addons/test_sale_product_configurators/static/tests/tours/product_configurator_edition_ui.js @@ -142,4 +142,12 @@ tour.register('sale_product_configurator_edition_tour', { trigger: 'td.o_data_cell:contains("tour success")', extra_trigger: 'div[name="order_line"]', run: function (){} +}, { + trigger: 'td.o_data_cell', + run: function () { + window.location.href = window.location.origin + '/web'; + }, // Avoid race condition at the end of the tour by returning to the home page. +}, { + trigger: '.o_navbar', + run: function() {}, // Check the home page is loaded }]); diff --git a/addons/test_sale_product_configurators/static/tests/tours/product_configurator_single_custom_attribute_ui.js b/addons/test_sale_product_configurators/static/tests/tours/product_configurator_single_custom_attribute_ui.js index e57f1d45e2d..d1dd1aaaa0d 100644 --- a/addons/test_sale_product_configurators/static/tests/tours/product_configurator_single_custom_attribute_ui.js +++ b/addons/test_sale_product_configurators/static/tests/tours/product_configurator_single_custom_attribute_ui.js @@ -57,4 +57,12 @@ tour.register('sale_product_configurator_single_custom_attribute_tour', { run: function () { //check } +}, { + trigger: '.configurator_container', + run: function () { + window.location.href = window.location.origin + '/web'; + } +}, { + trigger: '.o_navbar', + run: function() {}, // Check the home page is loaded }]);