diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-04-06 10:59:24 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | b0fd99f261b9a89c7167c3ae2e33abac8d31f168 (patch) | |
| tree | 1dfc76d0676e9876efbd4a33bfec9b78088dd246 | |
| parent | 318ff5f00d288f2e5db49548cd5f86646d22edc4 (diff) | |
[FIX] test_new_api: apply commit odoo/odoo@a24793962
Commit odoo/odoo@a24793962 adds some steps to the x2many tour.
This part of the commit had been deliberately moved aside for a
while in the new views branch, as what was tested didn't work yet
back then. It does now, so we re-enable those steps.
| -rw-r--r-- | odoo/addons/test_new_api/static/test/x2many.js | 68 |
1 files changed, 66 insertions, 2 deletions
diff --git a/odoo/addons/test_new_api/static/test/x2many.js b/odoo/addons/test_new_api/static/test/x2many.js index 6610fcc5555..613e6f04268 100644 --- a/odoo/addons/test_new_api/static/test/x2many.js +++ b/odoo/addons/test_new_api/static/test/x2many.js @@ -450,8 +450,72 @@ odoo.define('web.test.x2many', function (require) { trigger: '.tab-pane:eq(0) .o_form_field tbody .o_data_row:eq(2)', extra_trigger: 'body:not(:has(.tab-pane:eq(0) .o_form_field tbody .o_data_row:eq(3)))', run: function () {}, // it's a check - }]); + }, -// FIXME: apply https://github.com/odoo/odoo/commit/a2479396204d900b267d2446001769bdcbd1f9fa + ///////////////////////////////////////////////////////////////////////////////////////////// + // Discussions 3 + ///////////////////////////////////////////////////////////////////////////////////////////// + { + content: "switch to the third form view to test onchange changing one2many (toggle menu dropdown)", + trigger: '.o_sub_menu .oe_secondary_submenu .oe_menu_leaf .oe_menu_text:containsExact(Discussions)', + extra_trigger: '.tab-pane:eq(0) .o_form_field tbody .o_data_row:eq(2)', + edition: 'community' + }, { + content: "switch to the third form view to test onchange changing one2many (toggle menu dropdown)", + trigger: 'nav .o_menu_sections li a:containsExact(Discussions)', + extra_trigger: '.tab-pane:eq(0) .o_form_field tbody .o_data_row:eq(2)', + edition: 'enterprise' + }, { + content: "switch to the thied form view to test onchange changing one2many (open submenu)", + trigger: '.o_sub_menu .oe_secondary_submenu .oe_menu_leaf .oe_menu_text:contains(Discussions 3)', + edition: 'community' + }, { + content: "switch to the thied form view to test onchange changing one2many (open submenu)", + trigger: 'nav .o_menu_sections ul li a:contains(Discussions 3)', + edition: 'enterprise' + }, { + content: "wait web client", + trigger: '.breadcrumb:contains(Discussions 3)', + }, { + content: "create new discussion", + trigger: 'button.o_list_button_add', + }, { + content: "set discussion title to generate dummy message", + trigger: 'input.o_form_required', + run: 'text {generate_dummy_message}', + }, { + content: "check new dummy message happened", + trigger: '.o_form_field[name=messages] .o_data_row .o_list_number:containsExact(13)', + extra_trigger: '.o_form_field[name=important_messages] .o_data_row .o_list_number:containsExact(13)', + run: function () {}, // it's a check + }, { + content: "check field not in embedded view received correctly", + trigger: '.o_form_field[name=messages] .o_data_row input[type="checkbox"]:propChecked', + run: function () {}, // it's a check + }, { + content: "empty discussion title", + trigger: 'input.o_form_required', + run: 'text removed_title', + }, { + content: "onchange happened", + trigger: '.o_form_field[name=messages] .o_data_row td:contains([removed_title])', + run: function () {}, // it's a check + }, { + content: "set discussion title to generate dummy message", + trigger: 'input.o_form_required', + run: 'text {generate_dummy_message}', + }, { + content: "chuck update and new dummy message happened", + trigger: '.o_form_field[name=messages] .o_data_row .o_list_number:containsExact(22)', + extra_trigger: '.o_form_field[name=important_messages] .o_data_row .o_list_number:containsExact(22)', + run: function () {}, // it's a check + }, { // cancel + content: "cancel change", + trigger: '.o_cp_buttons .o_form_button_cancel', + run: 'click', + }, { + content: "confirm cancel change", + trigger: '.modal-footer button:contains(Ok)', + }]); }); |
