From ccdd74bfa34ee77281ed2002e925b22a08657fac Mon Sep 17 00:00:00 2001 From: William Henrotin Date: Thu, 29 Oct 2020 14:13:26 +0000 Subject: [PATCH] [FIX] test_main_flows: use input tag In some cases, the edit mode on the production form view is not already rendered when hte tour try to write '1' in the qty_producing field. This lead to a fail of the Main Flow Tour. This commit specifically trigger the input tag to be sure the text will be inserted in edit mode. closes odoo/odoo#61541 X-original-commit: 426a4306c911de2a47bd804dde0d67aa19a22b67 Signed-off-by: William Henrotin --- odoo/addons/test_main_flows/static/tests/tours/main_flow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 faf250401ae..7320b120b94 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 @@ -828,10 +828,10 @@ tour.stepUtils.openBuggerMenu("li.breadcrumb-item.active:contains('Manufacturing content: _t('Edit the production order'), extra_trigger: 'body.o_web_client:not(.oe_wait)', }, { - trigger: ".o_field_widget[name=qty_producing]", + trigger: "input[name=qty_producing]", + position: 'left', content: _t("Produce"), run: "text 1", - extra_trigger: 'body.o_web_client:not(.oe_wait)', }, ...tour.stepUtils.statusbarButtonsSteps('Mark as Done', _t("Mark as Done"), ".o_statusbar_status .btn.dropdown-toggle:contains('To Close')"), {