From f10e7e01e41e6a5d589ae9e1a5e92d9ac9994686 Mon Sep 17 00:00:00 2001 From: FrancoisGe Date: Wed, 15 Nov 2023 10:57:57 +0100 Subject: [PATCH] [FIX] test_main_flows: edit record after Save & New Since the commit afdcf9a5d5cd0d25b2ba61167d3ae6726a97d554, the mobile main flow tour fail sometimes. This is due to the fact that the tour try to edit the record before the new record is displayed. The solution is to wait for the new record to be displayed before trying to edit it. closes odoo/odoo#142124 Signed-off-by: Pierre Rousseau (pro) --- odoo/addons/test_main_flows/static/tests/tours/main_flow.js | 4 ++++ 1 file changed, 4 insertions(+) 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 1a82056864b..b9d953903d4 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 @@ -556,6 +556,10 @@ stepUtils.autoExpandMoreButtons('.o_form_saved'), extra_trigger: ".modal:not(.o_inactive_modal) .modal-title:contains('Order Lines')", content: _t('Save & New'), position: 'right', +}, { + mobile: true, + trigger: ".modal-footer .btn-primary:contains('Save & New'):not([disabled])", + run: () => {}, // check if the new record is displayed }, { /** * We need both triggers because the "sale_product_configurator" module replaces the