From 8a7b845353155d12c7717be476583fdf61e3e22c Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 23 Mar 2018 09:42:06 +0100 Subject: [FIX] web: correct forward-port of ef540eb006abac0d318f2a708384d125f6203662 Adapt tests and classes --- addons/web/static/tests/fields/relational_fields_tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/web/static/tests/fields/relational_fields_tests.js') diff --git a/addons/web/static/tests/fields/relational_fields_tests.js b/addons/web/static/tests/fields/relational_fields_tests.js index 6528969bbb7..58be902b217 100644 --- a/addons/web/static/tests/fields/relational_fields_tests.js +++ b/addons/web/static/tests/fields/relational_fields_tests.js @@ -3958,7 +3958,7 @@ QUnit.module('relational_fields', { form.$('td.o_list_record_remove button').first().click(); - assert.strictEqual(form.$('td.o_list_record_remove i').length, 1, + assert.strictEqual(form.$('td.o_list_record_remove button').length, 1, "should have 1 remove button (a record is supposed to have been unlinked)"); // save and check that the correct command has been generated @@ -4004,7 +4004,7 @@ QUnit.module('relational_fields', { form.$('td.o_list_record_remove button').first().click(); - assert.strictEqual(form.$('td.o_list_record_remove i').length, 1, + assert.strictEqual(form.$('td.o_list_record_remove button').length, 1, "should have 1 remove button (a record is supposed to have been deleted)"); // save and check that the correct command has been generated @@ -9056,7 +9056,7 @@ QUnit.module('relational_fields', { 'display_name of first subrecord should be the one in DB'); assert.ok(form.$('.o_list_record_remove').length, 'delete icon should be visible in edit'); - assert.ok(form.$('td.o_list_record_remove i').first().hasClass('fa fa-times'), + assert.ok(form.$('td.o_list_record_remove button').first().hasClass('fa fa-times'), "should have X icons to remove (unlink) records"); assert.ok(form.$('.o_field_x2many_list_row_add').length, '"Add an item" should not visible in edit'); -- cgit v1.2.3