[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 <Whenrow@users.noreply.github.com>
This commit is contained in:
William Henrotin
2020-11-09 13:44:43 +00:00
parent c2150d9117
commit ccdd74bfa3
@@ -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')"),
{