From bcb3e35754c40780a3b55dd4b532e28aab37c98e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 25 Jul 2022 06:21:24 +0000 Subject: [PATCH] [FIX] test_main_flows: properly terminate tours - the community version would finish with a wizard opened in edition mode, add a "real" final step of waiting for the wizard to finish processing (the invoice to be marked as paid) - the enterprise version would finish on the reconciliation widget, which is always an edition-mode form, check that the reconciliation succeeded and (as in the accounting tour) return to the accounting dashboard afterwards Part-of: odoo/odoo#96517 --- .../static/tests/tours/main_flow.js | 32 +++++++++++++++++++ 1 file changed, 32 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 0c62de8193e..e81233eab4b 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 @@ -973,6 +973,12 @@ tour.stepUtils.autoExpandMoreButtons('.o_control_panel .breadcrumb:contains("the content: _t("Validate"), position: "bottom", }, { + edition: "community", + content: "wait for payment registration to succeed", + trigger: "span.bg-success:contains('Paid')", + auto: true, + run() {} +},{ edition: "enterprise", trigger: '.o_menu_toggle', content: _t('Go back to the home menu'), @@ -1055,5 +1061,31 @@ tour.stepUtils.autoExpandMoreButtons('.o_control_panel .breadcrumb:contains("the trigger: "button[name='button_validate']", content: Markup(_t('

Click on Reconcile

')), position: "right", +}, +{ + mobile: false, + edition: "enterprise", + trigger: ".o_tag_badge_text:contains('Matched')", + auto: true, +}, +// exit reconciliation widget +{ + ...tour.stepUtils.toggleHomeMenu(), + mobile: false, + auto: true, +}, +{ + trigger: `.o_app[data-menu-xmlid="account_accountant.menu_accounting"]`, + edition: 'enterprise', + mobile: false, + auto: true, +}, +{ + mobile: false, + edition: "enterprise", + content: "check that we're back on the dashboard", + trigger: 'a:contains("Customer Invoices")', + auto: true, + run() {} }]); });