[FIX] test_new_api: adapt tour to new onchange semantics

Onchanges triggered in a relational fields are now directly
triggered on the main form view as well. This was not the case
before and there were some steps (or parts of steps) checking
that.
This commit is contained in:
Aaron Bohy
2017-04-11 19:44:38 +02:00
parent 3d959382fd
commit 97b4da489d
@@ -387,10 +387,6 @@ odoo.define('web.test.x2many', function (require) {
// trigger: '.o_list_view .o_selected_row td:nth(3):contains(3)',
// run: function () {}, // don't blur the many2one
// }, {
content: "test one2many field not triggered onchange",
trigger: '.o_content:not(:has(.o_form_textarea [name="message_concat"] textarea:propValueContains(ccc)))',
run: function () {}, // don't blur the many2one
}, {
content: "open the many2one to select an other user",
trigger: '.o_list_view .o_form_field_many2one[name="author"] .o_form_input_dropdown > input',
run: 'text Demo',
@@ -403,10 +399,6 @@ odoo.define('web.test.x2many', function (require) {
// trigger: '.o_list_editable_form span.o_form_field:contains([test_trigger] Demo User)',
// // trigger: '.o_list_editable_form span.o_form_field:contains([test_trigger2] Demo User)',
// run: function () {}, // don't blur the many2one
}, {
content: "test one2many field not triggered onchange",
trigger: '.o_content:not(:has(.o_form_textarea[name="message_concat"] textarea:propValueContains(ccc)))',
run: function () {}, // don't blur the many2one
}, {
content: "change text value",
trigger: '.o_form_textarea[name="body"] textarea:first',
@@ -414,7 +406,6 @@ odoo.define('web.test.x2many', function (require) {
}, { // check onchange
content: "click outside to trigger one2many onchange",
trigger: 'input.o_form_required',
extra_trigger: 'body:not(:has(.o_form_textarea[name="message_concat"] textarea:first:propValueContains(Demo User)))',
run: 'click'
}, {
// FIXME (problem 2)