diff options
| author | Michael Mattiello (mcm) <mcm@odoo.com> | 2020-03-27 10:46:32 +0000 |
|---|---|---|
| committer | Michael Mattiello (mcm) <mcm@odoo.com> | 2020-03-31 07:11:01 +0000 |
| commit | 72feab43b16d9d49703eacb7c886aafad9faa6c5 (patch) | |
| tree | c0c83535f6c0f91a9a227e3e7959c8da6e902b3c /odoo/addons/test_new_api | |
| parent | 4520a09f2c789626d6aba074e063deb490a5bb52 (diff) | |
[FIX] test_new_api: fix tour, autocomplete in modal
In tour widget_x2many at "open the many2one to select another user",
sometimes the autocomplete dropdown is openned on the wrong field.
This bug is due to the new field boolean.
Before the legacy fields were loaded/saved synchronously but now
component fields are asynchronous. This causes the modal to open later
but the tour is still running and it plays with a field in the main
renderer.
This commit changes the trigger to use the field with name=author
(which is in the modal) and not any field that has a dropdown.
task id: 2193996
Diffstat (limited to 'odoo/addons/test_new_api')
| -rw-r--r-- | odoo/addons/test_new_api/static/tests/tours/x2many.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/addons/test_new_api/static/tests/tours/x2many.js b/odoo/addons/test_new_api/static/tests/tours/x2many.js index a9ad0a7fecc..1eeb10e6977 100644 --- a/odoo/addons/test_new_api/static/tests/tours/x2many.js +++ b/odoo/addons/test_new_api/static/tests/tours/x2many.js @@ -223,7 +223,7 @@ odoo.define('web.test.x2many', function (require) { extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody tr td:contains(aaa)', }, { content: "open the many2one to select another user", - trigger: '.o_input_dropdown > input', + trigger: '.o_field_many2one[name="author"] .o_input_dropdown > input', run: 'text Marc', }, { content: "select another user", |
