From d41d6275690e913efe63b88610ec73f0e796e253 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Thu, 14 Nov 2019 10:49:14 +0000 Subject: [IMP] web: field phone widget deals with SMS by default Task 2123526 Before this task, the phone widget on char fields was not displaying the send sms button by default After this task, the default behavior of the phone widget is to display the send sms button --- 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 a58957ebfca..bdd78c21df9 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(), 'yop', + assert.strictEqual(list.$('tbody td:not(.o_list_record_selector)').first().text(), 'yopSMS', "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(), 'new', + assert.strictEqual(list.$('tbody td:not(.o_list_record_selector)').first().text(), 'newSMS', "value should be properly updated"); $phoneLink = list.$('a.o_form_uri.o_field_widget'); assert.strictEqual($phoneLink.length, 3, -- cgit v1.2.3