From 8fd69c44f29b9d58a4112cdd4585496fe111e042 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Wed, 12 Feb 2020 16:49:31 +0000 Subject: [FIX] sms, web: phone widget with sms tested in right module Before this commit, the behavior of the phone widget was tested in web as if it was always altered with module SMS Giving wrong test results when sms module was not installed After this commit, the separation is clearer, and the phone widget's behavior is tested according to the modules it is altered by closes odoo/odoo#45271 X-original-commit: 2e337516468797dd898c79c9669b5a90c83b56a7 Signed-off-by: Lucas Perais (lpe) --- addons/web/static/tests/fields/basic_fields_mobile_tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/tests/fields/basic_fields_mobile_tests.js') diff --git a/addons/web/static/tests/fields/basic_fields_mobile_tests.js b/addons/web/static/tests/fields/basic_fields_mobile_tests.js index bdd78c21df9..d4657a65856 100644 --- a/addons/web/static/tests/fields/basic_fields_mobile_tests.js +++ b/addons/web/static/tests/fields/basic_fields_mobile_tests.js @@ -111,7 +111,7 @@ QUnit.module('basic_fields', { assert.containsN(list, '.o_data_row', 3, "should have 3 record"); - assert.strictEqual(list.$('tbody td:not(.o_list_record_selector)').first().text(), 'yopSMS', + assert.strictEqual(list.$('tbody td:not(.o_list_record_selector) a').first().text(), 'yop', "value should be displayed properly"); var $phoneLink = list.$('a.o_form_uri.o_field_widget'); @@ -132,7 +132,7 @@ QUnit.module('basic_fields', { await testUtils.dom.click(list.$buttons.find('.o_list_button_save')); $cell = list.$('tbody td:not(.o_list_record_selector)').first(); assert.doesNotHaveClass($cell.parent(), 'o_selected_row', 'should not be in edit mode anymore'); - assert.strictEqual(list.$('tbody td:not(.o_list_record_selector)').first().text(), 'newSMS', + assert.strictEqual(list.$('tbody td:not(.o_list_record_selector) a').first().text(), 'new', "value should be properly updated"); $phoneLink = list.$('a.o_form_uri.o_field_widget'); assert.strictEqual($phoneLink.length, 3, -- cgit v1.2.3