summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-03-11 09:38:30 +0000
committerJulien Mougenot <jum@odoo.com>2020-03-13 14:08:33 +0000
commit804507ef4925cafdf5349a3b7fa1e41dbca87ff7 (patch)
tree09a097ffb347dae1c9dc7879be261ec734f70d4f /odoo
parentbb8eb766a84b9fd06007d3fb4ab9a29b70097738 (diff)
[REF] *: Adapt all module tests to the new control panel
Use of the new control panel helpers to increase consistency and change the assertions according to the new DOM/behaviour (e.g. components removed instead of turning invisible). Part of task 2196029 Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Diffstat (limited to 'odoo')
-rw-r--r--odoo/addons/test_new_api/static/tests/tours/x2many.js5
1 files changed, 5 insertions, 0 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 f1683d09c69..a9ad0a7fecc 100644
--- a/odoo/addons/test_new_api/static/tests/tours/x2many.js
+++ b/odoo/addons/test_new_api/static/tests/tours/x2many.js
@@ -77,6 +77,11 @@ odoo.define('web.test.x2many', function (require) {
}, { // add message a
content: "Select First Tab",
trigger: 'a[role=tab]:first',
+ // We check the "Save" button is in the DOM to ensure that the form renderer
+ // is fully loaded and is on the right pane (right now the renderer dispatches
+ // a click on its last active pane header. We can remove this assert once the
+ // form renderer behaves properly).
+ extra_trigger: 'button.o_form_button_save',
}, {
content: "create new message a",
trigger: '.o_form_sheet .tab-pane:eq(0) .o_field_x2many_list_row_add a'