From 05085880b865db1d6c2985e92b7ef8f026383da0 Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Mon, 26 Sep 2022 12:10:41 +0000 Subject: [PATCH] [FIX] test_main_flows: Fix not deterministic tour in bank reconciliation widget In https://github.com/odoo/odoo/commit/4fb0933986534e31337aa1dce3478a67deea72de, we faced an owl error when changing the tour: "Component is destroyed" This is due to the tour leaving the kanban view right after clicking on the "Validate" button. After the validation, the kanban view is reloaded that is triggering a call to "web_search_read". For some reason, the 'web_search_read' was triggered right after the component is destroyed. To fix that issue, some additional steps have been added to the tour but this was just making the tour failing in a not determinist way. Since the root cause of the issue has been fixed since, such additional steps are no longer needed. closes odoo/odoo#105332 X-original-commit: 6a35a1f5f694a1bf6448ace8b43a8e99e07cfb90 Signed-off-by: Aaron Bohy (aab) --- .../static/tests/tours/main_flow.js | 19 ------------------- 1 file changed, 19 deletions(-) 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 048040fe02f..4a21f8e4819 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 @@ -951,25 +951,6 @@ tour.stepUtils.mobileModifier(tour.stepUtils.autoExpandMoreButtons('.o_control_p trigger: "button[name='button_validate'].btn-primary", extra_trigger: "button[name='button_validate'].btn-primary", content: _t("Reconcile the bank transaction"), -}, { - mobile: false, - edition: "enterprise", - trigger: ".o_control_panel .o_filter_menu .o_dropdown_title:contains('Filters'):first", - extra_trigger: "a.active[name='amls_tab']", - content: _t("Click on 'Filters'"), -}, { - mobile: false, - edition: "enterprise", - trigger: ".o_control_panel .o_filter_menu .dropdown-item:contains('Matched')", - extra_trigger: ".o_control_panel .o_filter_menu .dropdown-item:contains('Matched')", - content: _t("Add the 'Matched' filters"), -}, { - mobile: false, - edition: "enterprise", - trigger: "div.o_bank_rec_st_line_kanban_card span:contains('the_flow.customer')", - extra_trigger: "div.o_bank_rec_st_line_kanban_card span:contains('the_flow.customer')", - content: _t("Ensure the line is well reconciled"), - run: function(){}, }, // exit reconciliation widget {