[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) <aab@odoo.com>
This commit is contained in:
Laurent Smet
2022-11-08 15:56:09 +01:00
parent 9db9dbd38a
commit 05085880b8
@@ -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
{