diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-07-16 15:45:24 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-07-16 15:45:24 +0000 |
| commit | 5d57e1862f3d178313534fc201216fdd31e5247d (patch) | |
| tree | 1d78d498b6805baa9979f3b0860b669c9346c765 /addons/web/static/tests/fields/relational_fields | |
| parent | 02c48e71f06ba335dcbde020d7fe28663e1afd00 (diff) | |
| parent | beba36416fdf25df74cf8a581c66948a418173b6 (diff) | |
[MERGE] Forward port of saas-12.4 to master up to beba36416fdf2
closes odoo/odoo#34924
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields')
| -rw-r--r-- | addons/web/static/tests/fields/relational_fields/field_one2many_tests.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/web/static/tests/fields/relational_fields/field_one2many_tests.js b/addons/web/static/tests/fields/relational_fields/field_one2many_tests.js index 4f5958f65cd..2404890c440 100644 --- a/addons/web/static/tests/fields/relational_fields/field_one2many_tests.js +++ b/addons/web/static/tests/fields/relational_fields/field_one2many_tests.js @@ -1093,7 +1093,7 @@ QUnit.module('fields', {}, function () { await testUtils.form.clickEdit(form); - assert.equal(form.$('.o_field_one2many td[class="o_data_cell"]').text(), "#20#21#22#23#24#25#26#27#28#29", + assert.equal(form.$('.o_field_one2many .o_list_char').text(), "#20#21#22#23#24#25#26#27#28#29", "should display the records in order"); await testUtils.dom.click(form.$('.o_field_one2many .o_list_view tbody tr:first td:first')); @@ -1102,12 +1102,12 @@ QUnit.module('fields', {}, function () { // the domain fail if the widget does not use the allready loaded data. await testUtils.form.clickDiscard(form); - assert.equal(form.$('.o_field_one2many td[class="o_data_cell"]').text(), "blurp#21#22#23#24#25#26#27#28#29", + assert.equal(form.$('.o_field_one2many .o_list_char').text(), "blurp#21#22#23#24#25#26#27#28#29", "should display the records in order with the changes"); await testUtils.dom.click($('.modal .modal-footer button:first')); - assert.equal(form.$('.o_field_one2many td[class="o_data_cell"]').text(), "#20#21#22#23#24#25#26#27#28#29", + assert.equal(form.$('.o_field_one2many .o_list_char').text(), "#20#21#22#23#24#25#26#27#28#29", "should cancel changes and display the records in order"); await testUtils.form.clickEdit(form); @@ -1119,7 +1119,7 @@ QUnit.module('fields', {}, function () { { position: 'top' } ); - assert.equal(form.$('.o_field_one2many td[class="o_data_cell"]').text(), "#20#30#31#32#33#34#35#36#37#38", + assert.equal(form.$('.o_field_one2many .o_list_char').text(), "#20#30#31#32#33#34#35#36#37#38", "should display the records in order after resequence (display record with turtle_int=0)"); // Drag and drop the third line in second position @@ -1129,17 +1129,17 @@ QUnit.module('fields', {}, function () { { position: 'top' } ); - assert.equal(form.$('.o_field_one2many td[class="o_data_cell"]').text(), "#20#39#40#41#42#43#44#45#46#47", + assert.equal(form.$('.o_field_one2many .o_list_char').text(), "#20#39#40#41#42#43#44#45#46#47", "should display the records in order after resequence (display record with turtle_int=0)"); await testUtils.form.clickDiscard(form); - assert.equal(form.$('.o_field_one2many td[class="o_data_cell"]').text(), "#20#39#40#41#42#43#44#45#46#47", + assert.equal(form.$('.o_field_one2many .o_list_char').text(), "#20#39#40#41#42#43#44#45#46#47", "should display the records in order after resequence"); await testUtils.dom.click($('.modal .modal-footer button:first')); - assert.equal(form.$('.o_field_one2many td[class="o_data_cell"]').text(), "#20#21#22#23#24#25#26#27#28#29", + assert.equal(form.$('.o_field_one2many .o_list_char').text(), "#20#21#22#23#24#25#26#27#28#29", "should cancel changes and display the records in order"); form.destroy(); |
