From 70d047aa33a18672fe4262d73748662b326dbad2 Mon Sep 17 00:00:00 2001 From: "Michael Mattiello (mcm)" Date: Tue, 24 Nov 2020 07:32:19 +0000 Subject: [PATCH] [FIX] *: fix tours broke by new many2one render *: sale_product_configurator, test_main_flows This commit fixes tours broken by many2one rendering changes task 2330101 --- .../tests/tours/product_configurator_advanced_ui.js | 2 +- .../test_main_flows/static/tests/tours/main_flow.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/sale_product_configurator/static/tests/tours/product_configurator_advanced_ui.js b/addons/sale_product_configurator/static/tests/tours/product_configurator_advanced_ui.js index 16251f5612f..fb7db5dd951 100644 --- a/addons/sale_product_configurator/static/tests/tours/product_configurator_advanced_ui.js +++ b/addons/sale_product_configurator/static/tests/tours/product_configurator_advanced_ui.js @@ -25,7 +25,7 @@ tour.register('sale_product_configurator_advanced_tour', { auto: true, }, { trigger: "a:contains('Add a product')", - extra_trigger: ".o_field_widget[name=partner_shipping_id] > .o_external_button", // Wait for onchange_partner_id + extra_trigger: ".o_field_widget[name=partner_shipping_id] .o_external_button", // Wait for onchange_partner_id }, { trigger: 'div[name="product_template_id"] input', run: function (){ diff --git a/odoo/addons/test_main_flows/static/tests/tours/main_flow.js b/odoo/addons/test_main_flows/static/tests/tours/main_flow.js index a65312b484a..f407513f4b0 100644 --- a/odoo/addons/test_main_flows/static/tests/tours/main_flow.js +++ b/odoo/addons/test_main_flows/static/tests/tours/main_flow.js @@ -202,12 +202,12 @@ tour.stepUtils.autoExpandMoreButtons('.o_form_readonly'), }, { mobile: true, trigger: '.o_field_widget[name=code]', - extra_trigger: ".o_field_widget[name=product_id] > .o_external_button", // Wait name_create + extra_trigger: ".o_field_widget[name=product_id] .o_external_button", // Wait name_create // click somewhere else to exit cell focus }, { mobile: false, trigger: 'label:contains("Vendor Taxes")', - extra_trigger: ".o_field_widget[name=name] > .o_external_button", // Wait name_create + extra_trigger: ".o_field_widget[name=name] .o_external_button", // Wait name_create // click somewhere else to exit cell focus }, { mobile: false, @@ -315,7 +315,7 @@ tour.stepUtils.autoExpandMoreButtons('.o_form_readonly'), }, { mobile: true, trigger: '.o_field_widget[name=code]', - extra_trigger: ".o_field_widget[name=product_id] > .o_external_button", // Wait name_create + extra_trigger: ".o_field_widget[name=product_id] .o_external_button", // Wait name_create // click somewhere else to exit cell focus }, { mobile: false, @@ -422,7 +422,7 @@ tour.stepUtils.autoExpandMoreButtons('.o_form_readonly'), position: 'right', }, { trigger: '.o_form_button_save', - extra_trigger: '.o_field_widget[name=project_id] > .o_external_button', // Wait name_create + extra_trigger: '.o_field_widget[name=project_id] .o_external_button', // Wait name_create content: _t("Save this product and the modifications you've made to it."), position: 'bottom', }, { @@ -479,7 +479,7 @@ tour.stepUtils.autoExpandMoreButtons('.o_form_readonly'), position: 'right', }, { trigger: ".o_kanban_quick_create .o_kanban_add", - extra_trigger: ".o_kanban_quick_create .o_field_widget[name=partner_id] > .o_external_button", // Wait name_create + extra_trigger: ".o_kanban_quick_create .o_field_widget[name=partner_id] .o_external_button", // Wait name_create content: _t("Click here to add your opportunity."), position: "right", }, {