summaryrefslogtreecommitdiff
path: root/addons/web/static/tests
diff options
context:
space:
mode:
authorKevin Baptiste <kba@odoo.com>2019-08-12 07:18:23 +0000
committerYannick Tivisse <yti@odoo.com>2019-11-28 10:05:12 +0000
commitff1c35513aecef5fbc30f7c2f3834450e719714e (patch)
tree8149f14df17095845e735d6cccaf9317a1f97af6 /addons/web/static/tests
parent4c030311ada2ad19a2ee81b15544b7aed35b642b (diff)
[IMP] web: update to fontawesome 4.7.0 to 5.11.2
FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/tests')
-rw-r--r--addons/web/static/tests/chrome/action_manager_tests.js12
-rw-r--r--addons/web/static/tests/fields/basic_fields_tests.js118
-rw-r--r--addons/web/static/tests/fields/relational_fields/field_one2many_tests.js2
-rw-r--r--addons/web/static/tests/services/notification_service_tests.js4
-rw-r--r--addons/web/static/tests/views/form_tests.js26
-rw-r--r--addons/web/static/tests/views/kanban_tests.js2
-rw-r--r--addons/web/static/tests/views/list_tests.js2
-rw-r--r--addons/web/static/tests/views/search_panel_tests.js2
-rw-r--r--addons/web/static/tests/widgets/company_switcher_tests.js2
9 files changed, 85 insertions, 85 deletions
diff --git a/addons/web/static/tests/chrome/action_manager_tests.js b/addons/web/static/tests/chrome/action_manager_tests.js
index 226c8fb2b15..3c939693fea 100644
--- a/addons/web/static/tests/chrome/action_manager_tests.js
+++ b/addons/web/static/tests/chrome/action_manager_tests.js
@@ -3022,23 +3022,23 @@ QUnit.module('ActionManager', {
});
await actionManager.doAction(3);
- assert.hasClass($('.o_control_panel .fa-bar-chart-o'),'active',
+ assert.hasClass($('.o_control_panel .fa.fa-chart-bar'),'active',
"bar chart button is active");
- assert.doesNotHaveClass($('.o_control_panel .fa-area-chart'), 'active',
+ assert.doesNotHaveClass($('.o_control_panel .fa-chart-area'), 'active',
"line chart button is not active");
// display line chart
- await testUtils.dom.click($('.o_control_panel .fa-area-chart'));
- assert.hasClass($('.o_control_panel .fa-area-chart'),'active',
+ await testUtils.dom.click($('.o_control_panel .fa-chart-area'));
+ assert.hasClass($('.o_control_panel .fa-chart-area'),'active',
"line chart button is now active");
// switch to kanban and back to graph view
await testUtils.dom.click($('.o_control_panel .o_cp_switch_kanban'));
- assert.strictEqual($('.o_control_panel .fa-area-chart').length, 0,
+ assert.strictEqual($('.o_control_panel .fa-chart-area').length, 0,
"graph buttons are no longer in control panel");
await testUtils.dom.click($('.o_control_panel .o_cp_switch_graph'));
- assert.hasClass($('.o_control_panel .fa-area-chart'),'active',
+ assert.hasClass($('.o_control_panel .fa-chart-area'),'active',
"line chart button is still active");
actionManager.destroy();
});
diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js
index 7c9e84239e3..ea52e2bcdea 100644
--- a/addons/web/static/tests/fields/basic_fields_tests.js
+++ b/addons/web/static/tests/fields/basic_fields_tests.js
@@ -368,9 +368,9 @@ QUnit.module('basic_fields', {
'</tree>',
});
- assert.containsN(list, 'button i.fa.fa-circle.o_toggle_button_success', 4,
+ assert.containsN(list, 'button i.far.fa-circle.o_toggle_button_success', 4,
"should have 4 green buttons");
- assert.containsOnce(list, 'button i.fa.fa-circle.text-muted',
+ assert.containsOnce(list, 'button i.far.fa-circle.text-muted',
"should have 1 muted button");
assert.hasAttrValue(list.$('.o_list_view button').first(), 'title',
@@ -380,11 +380,11 @@ QUnit.module('basic_fields', {
// clicking on first button to check the state is properly changed
await testUtils.dom.click(list.$('.o_list_view button').first());
- assert.containsN(list, 'button i.fa.fa-circle.o_toggle_button_success', 3,
+ assert.containsN(list, 'button i.far.fa-circle.o_toggle_button_success', 3,
"should have 3 green buttons");
await testUtils.dom.click(list.$('.o_list_view button').first());
- assert.containsN(list, 'button i.fa.fa-circle.o_toggle_button_success', 4,
+ assert.containsN(list, 'button i.far.fa-circle.o_toggle_button_success', 4,
"should have 4 green buttons");
list.destroy();
});
@@ -3639,7 +3639,7 @@ QUnit.module('basic_fields', {
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .year:contains(2017)'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .month').eq(3));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .day:contains(22)'));
- await testUtils.dom.click($('.bootstrap-datetimepicker-widget .fa-clock-o'));
+ await testUtils.dom.click($('.bootstrap-datetimepicker-widget .fa-clock'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .timepicker-hour'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .hour:contains(08)'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .timepicker-minute'));
@@ -3702,7 +3702,7 @@ QUnit.module('basic_fields', {
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .year:contains(2017)'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .month').eq(3));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .day:contains(22)'));
- await testUtils.dom.click($('.bootstrap-datetimepicker-widget .fa-clock-o'));
+ await testUtils.dom.click($('.bootstrap-datetimepicker-widget .fa-clock'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .timepicker-hour'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .hour:contains(08)'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .timepicker-minute'));
@@ -3818,7 +3818,7 @@ QUnit.module('basic_fields', {
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .year:contains(2017)'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .month').eq(3));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .day:contains(22)'));
- await testUtils.dom.click($('.bootstrap-datetimepicker-widget .fa-clock-o'));
+ await testUtils.dom.click($('.bootstrap-datetimepicker-widget .fa-clock'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .timepicker-hour'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .hour:contains(08)'));
await testUtils.dom.click($('.bootstrap-datetimepicker-widget .timepicker-minute'));
@@ -4928,9 +4928,9 @@ QUnit.module('basic_fields', {
"widget should be considered set, even though there is no value for this field");
assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star').length, 2,
"should have two stars for representing each possible value: no star, one star and two stars");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star').length, 0,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fas.fa-star').length, 0,
"should have no full star since there is no value");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star-o').length, 2,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.far.fa-star').length, 2,
"should have two empty stars since there is no value");
form.destroy();
@@ -4957,18 +4957,18 @@ QUnit.module('basic_fields', {
"widget should be considered set");
assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star').length, 2,
"should have two stars for representing each possible value: no star, one star and two stars");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star').length, 1,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fas.fa-star').length, 1,
"should have one full star since the value is the second value");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star-o').length, 1,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.far.fa-star').length, 1,
"should have one empty star since the value is the second value");
// hover last star
- form.$('.o_field_widget.o_priority a.o_priority_star.fa-star-o').last().trigger('mouseover');
+ form.$('.o_field_widget.o_priority a.o_priority_star.far.fa-star').last().trigger('mouseover');
assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star').length, 2,
"should have two stars for representing each possible value: no star, one star and two stars");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star').length, 2,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fas.fa-star').length, 2,
"should temporary have two full stars since we are hovering the third value");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star-o').length, 0,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.far.fa-star').length, 0,
"should temporary have no empty star since we are hovering the third value");
// Here we should test with mouseout, but currently the effect associated with it
@@ -4978,46 +4978,46 @@ QUnit.module('basic_fields', {
await testUtils.form.clickEdit(form);
assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star').length, 1,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fas.fa-star').length, 1,
"should still have one full star since the value is the second value");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star-o').length, 1,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.far.fa-star').length, 1,
"should still have one empty star since the value is the second value");
// save
await testUtils.form.clickSave(form);
assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star').length, 1,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fas.fa-star').length, 1,
"should still have one full star since the value is the second value");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star-o').length, 1,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.far.fa-star').length, 1,
"should still have one empty star since the value is the second value");
// switch to edit mode to check that the new value was properly written
await testUtils.form.clickEdit(form);
assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star').length, 1,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fas.fa-star').length, 1,
"should still have one full star since the value is the second value");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star-o').length, 1,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.far.fa-star').length, 1,
"should still have one empty star since the value is the second value");
// click on the second star in edit mode
- await testUtils.dom.click(form.$('.o_field_widget.o_priority a.o_priority_star.fa-star-o').last());
+ await testUtils.dom.click(form.$('.o_field_widget.o_priority a.o_priority_star.far.fa-star').last());
assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star').length, 2,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fas.fa-star').length, 2,
"should now have two full stars since the value is the third value");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star-o').length, 0,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.far.fa-star').length, 0,
"should now have no empty star since the value is the third value");
// save
await testUtils.form.clickSave(form);
assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star').length, 2,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fas.fa-star').length, 2,
"should now have two full stars since the value is the third value");
- assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.fa-star-o').length, 0,
+ assert.strictEqual(form.$('.o_field_widget.o_priority').find('a.o_priority_star.far.fa-star').length, 0,
"should now have no empty star since the value is the third value");
form.destroy();
@@ -5037,9 +5037,9 @@ QUnit.module('basic_fields', {
"widget should be considered set");
assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star').length, 2,
"should have two stars for representing each possible value: no star, one star and two stars");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star').length, 1,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fas.fa-star').length, 1,
"should have one full star since the value is the second value");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star-o').length, 1,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.far.fa-star').length, 1,
"should have one empty star since the value is the second value");
// Here we should test with mouseout, but currently the effect associated with it
@@ -5050,27 +5050,27 @@ QUnit.module('basic_fields', {
await testUtils.dom.click($cell);
assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star').length, 2,
"should have two stars for representing each possible value: no star, one star and two stars");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star').length, 1,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fas.fa-star').length, 1,
"should have one full star since the value is the second value");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star-o').length, 1,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.far.fa-star').length, 1,
"should have one empty star since the value is the second value");
// save
await testUtils.dom.click(list.$buttons.find('.o_list_button_save'));
assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star').length, 2,
"should have two stars for representing each possible value: no star, one star and two stars");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star').length, 1,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fas.fa-star').length, 1,
"should have one full star since the value is the second value");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star-o').length, 1,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.far.fa-star').length, 1,
"should have one empty star since the value is the second value");
// hover last star
- list.$('.o_data_row .o_priority a.o_priority_star.fa-star-o').first().trigger('mouseenter');
+ list.$('.o_data_row .o_priority a.o_priority_star.far.fa-star').first().trigger('mouseenter');
assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star').length, 2,
"should have two stars for representing each possible value: no star, one star and two stars");
- assert.strictEqual(list.$('.o_data_row').first().find('a.o_priority_star.fa-star').length, 2,
+ assert.strictEqual(list.$('.o_data_row').first().find('a.o_priority_star.fas.fa-star').length, 2,
"should temporary have two full stars since we are hovering the third value");
- assert.strictEqual(list.$('.o_data_row').first().find('a.o_priority_star.fa-star-o').length, 0,
+ assert.strictEqual(list.$('.o_data_row').first().find('a.o_priority_star.far.fa-star').length, 0,
"should temporary have no empty star since we are hovering the third value");
// click on the first star in readonly mode
@@ -5078,9 +5078,9 @@ QUnit.module('basic_fields', {
assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star').length, 0,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fas.fa-star').length, 0,
"should now have no full star since the value is the first value");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star-o').length, 2,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.far.fa-star').length, 2,
"should now have two empty stars since the value is the first value");
// re-enter edit mode to force re-rendering the widget to check if the value was correctly saved
@@ -5089,28 +5089,28 @@ QUnit.module('basic_fields', {
assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star').length, 0,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fas.fa-star').length, 0,
"should now only have no full star since the value is the first value");
- assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.fa-star-o').length, 2,
+ assert.strictEqual(list.$('.o_data_row').first().find('.o_priority a.o_priority_star.far.fa-star').length, 2,
"should now have two empty stars since the value is the first value");
// Click on second star in edit mode
- await testUtils.dom.click(list.$('.o_priority a.o_priority_star.fa-star-o').last());
+ await testUtils.dom.click(list.$('.o_priority a.o_priority_star.far.fa-star').last());
assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star.fa-star').length, 2,
+ assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star.fas.fa-star').length, 2,
"should now have two full stars since the value is the third value");
- assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star.fa-star-o').length, 0,
+ assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star.far.fa-star').length, 0,
"should now have no empty star since the value is the third value");
// save
await testUtils.dom.click(list.$buttons.find('.o_list_button_save'));
assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star').length, 2,
"should still have two stars");
- assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star.fa-star').length, 2,
+ assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star.fas.fa-star').length, 2,
"should now have two full stars since the value is the third value");
- assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star.fa-star-o').length, 0,
+ assert.strictEqual(list.$('.o_data_row').last().find('.o_priority a.o_priority_star.far.fa-star').length, 0,
"should now have no empty star since the value is the third value");
list.destroy();
@@ -5355,14 +5355,14 @@ QUnit.module('basic_fields', {
domain: [['id', '=', 1]],
});
- assert.containsOnce(kanban, '.o_kanban_record .o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsOnce(kanban, '.o_kanban_record .o_field_widget.o_favorite > a i.fas.fa-star',
'should be favorite');
assert.strictEqual(kanban.$('.o_kanban_record .o_field_widget.o_favorite > a').text(), ' Remove from Favorites',
'the label should say "Remove from Favorites"');
// click on favorite
await testUtils.dom.click(kanban.$('.o_field_widget.o_favorite'));
- assert.containsNone(kanban, '.o_kanban_record .o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsNone(kanban, '.o_kanban_record .o_field_widget.o_favorite > a i.fas.fa-star',
'should not be favorite');
assert.strictEqual(kanban.$('.o_kanban_record .o_field_widget.o_favorite > a').text(), ' Add to Favorites',
'the label should say "Add to Favorites"');
@@ -5387,35 +5387,35 @@ QUnit.module('basic_fields', {
res_id: 1,
});
- assert.containsOnce(form, '.o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsOnce(form, '.o_field_widget.o_favorite > a i.fas.fa-star',
'should be favorite');
assert.strictEqual(form.$('.o_field_widget.o_favorite > a').text(), ' Remove from Favorites',
'the label should say "Remove from Favorites"');
// click on favorite
await testUtils.dom.click(form.$('.o_field_widget.o_favorite'));
- assert.containsNone(form, '.o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsNone(form, '.o_field_widget.o_favorite > a i.fas.fa-star',
'should not be favorite');
assert.strictEqual(form.$('.o_field_widget.o_favorite > a').text(), ' Add to Favorites',
'the label should say "Add to Favorites"');
// switch to edit mode
await testUtils.form.clickEdit(form);
- assert.containsOnce(form, '.o_field_widget.o_favorite > a i.fa.fa-star-o',
+ assert.containsOnce(form, '.o_field_widget.o_favorite > a i.far.fa-star',
'should not be favorite');
assert.strictEqual(form.$('.o_field_widget.o_favorite > a').text(), ' Add to Favorites',
'the label should say "Add to Favorites"');
// click on favorite
await testUtils.dom.click(form.$('.o_field_widget.o_favorite'));
- assert.containsOnce(form, '.o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsOnce(form, '.o_field_widget.o_favorite > a i.fas.fa-star',
'should be favorite');
assert.strictEqual(form.$('.o_field_widget.o_favorite > a').text(), ' Remove from Favorites',
'the label should say "Remove from Favorites"');
// save
await testUtils.form.clickSave(form);
- assert.containsOnce(form, '.o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsOnce(form, '.o_field_widget.o_favorite > a i.fas.fa-star',
'should be favorite');
assert.strictEqual(form.$('.o_field_widget.o_favorite > a').text(), ' Remove from Favorites',
'the label should say "Remove from Favorites"');
@@ -5435,22 +5435,22 @@ QUnit.module('basic_fields', {
'</tree>',
});
- assert.containsOnce(list, '.o_data_row:first .o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsOnce(list, '.o_data_row:first .o_field_widget.o_favorite > a i.fas.fa-star',
'should be favorite');
// switch to edit mode
await testUtils.dom.click(list.$('tbody td:not(.o_list_record_selector)').first());
- assert.containsOnce(list, '.o_data_row:first .o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsOnce(list, '.o_data_row:first .o_field_widget.o_favorite > a i.fas.fa-star',
'should be favorite');
// click on favorite
await testUtils.dom.click(list.$('.o_data_row:first .o_field_widget.o_favorite'));
- assert.containsNone(list, '.o_data_row:first .o_field_widget.o_favorite > a i.fa.fa-star',
+ assert.containsNone(list, '.o_data_row:first .o_field_widget.o_favorite > a i.fas.fa-star',
'should not be favorite');
// save
await testUtils.dom.click(list.$buttons.find('.o_list_button_save'));
- assert.containsOnce(list, '.o_data_row:first .o_field_widget.o_favorite > a i.fa.fa-star-o',
+ assert.containsOnce(list, '.o_data_row:first .o_field_widget.o_favorite > a i.far.fa-star',
'should not be favorite');
list.destroy();
@@ -5595,10 +5595,10 @@ QUnit.module('basic_fields', {
model: 'partner',
data: this.data,
arch: '<form string="Partners">' +
- '<button class="oe_stat_button" name="items" icon="fa-gear">' +
+ '<button class="oe_stat_button" name="items" icon="fa-cog">' +
'<field name="qux" widget="statinfo"/>' +
'</button>' +
- '<button class="oe_stat_button" name="money" icon="fa-money">' +
+ '<button class="oe_stat_button" name="money" icon="fa-money-bill-alt">' +
'<field name="monetary" widget="statinfo"/>' +
'</button>' +
'</form>',
@@ -5624,7 +5624,7 @@ QUnit.module('basic_fields', {
arch: '<form string="Partners">' +
'<sheet>' +
'<div class="oe_button_box" name="button_box">' +
- '<button class="oe_stat_button" name="items" type="object" icon="fa-gear">' +
+ '<button class="oe_stat_button" name="items" type="object" icon="fa-cog">' +
'<field name="int_field" widget="statinfo"/>' +
'</button>' +
'</div>' +
@@ -5674,7 +5674,7 @@ QUnit.module('basic_fields', {
arch: '<form string="Partners">' +
'<sheet>' +
'<div class="oe_button_box" name="button_box">' +
- '<button class="oe_stat_button" name="items" type="object" icon="fa-gear">' +
+ '<button class="oe_stat_button" name="items" type="object" icon="fa-cog">' +
'<field string="Useful stat button" name="int_field" widget="statinfo" ' +
'options="{\'label_field\': \'foo\'}"/>' +
'</button>' +
@@ -5726,7 +5726,7 @@ QUnit.module('basic_fields', {
arch: '<form string="Partners">' +
'<sheet>' +
'<div class="oe_button_box" name="button_box">' +
- '<button class="oe_stat_button" name="items" type="object" icon="fa-gear">' +
+ '<button class="oe_stat_button" name="items" type="object" icon="fa-cog">' +
'<field string="Useful stat button" name="int_field" widget="statinfo" nolabel="1"/>' +
'</button>' +
'</div>' +
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 60f3398c88c..a5bc095768c 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
@@ -2237,7 +2237,7 @@ QUnit.module('fields', {}, function () {
assert.containsN(form, 'td.o_list_record_remove button', 3,
"should have 3 remove buttons");
- assert.hasClass(form.$('td.o_list_record_remove button').first(),'fa fa-trash-o',
+ assert.hasClass(form.$('td.o_list_record_remove button').first(),'far fa-trash-alt',
"should have trash bin icons to remove (delete) records");
await testUtils.dom.click(form.$('td.o_list_record_remove button').first());
diff --git a/addons/web/static/tests/services/notification_service_tests.js b/addons/web/static/tests/services/notification_service_tests.js
index 164022c1706..2381a34376e 100644
--- a/addons/web/static/tests/services/notification_service_tests.js
+++ b/addons/web/static/tests/services/notification_service_tests.js
@@ -59,7 +59,7 @@ QUnit.module('Services', {
await testUtils.nextMicrotaskTick();
var $notification = $('body .o_notification_manager .o_notification');
assert.strictEqual($notification.html().trim().replace(/\s+/g, ' '),
- "<div class=\"toast-header\"> <span class=\"fa fa-2x mr-3 fa-lightbulb-o o_notification_icon\" role=\"img\" aria-label=\"Notification undefined\" title=\"Notification undefined\"></span> <div class=\"d-flex align-items-center mr-auto font-weight-bold o_notification_title\">a</div> </div> <div class=\"toast-body\"> <div class=\"o_notification_content\">b</div> </div>",
+ "<div class=\"toast-header\"> <span class=\"fa fa-2x mr-3 fa-lightbulb o_notification_icon\" role=\"img\" aria-label=\"Notification undefined\" title=\"Notification undefined\"></span> <div class=\"d-flex align-items-center mr-auto font-weight-bold o_notification_title\">a</div> </div> <div class=\"toast-body\"> <div class=\"o_notification_content\">b</div> </div>",
"should display notification");
assert.containsNone($notification, '.o_notification_close', "should not display the close button in ");
await waitCloseNotification();
@@ -188,7 +188,7 @@ QUnit.module('Services', {
assert.containsOnce($notification.eq(0), '.o_notification_close',
"should display the close button in notification");
assert.strictEqual($notification.html().trim().replace(/\s+/g, ' '),
- "<div class=\"toast-header\"> <span class=\"fa fa-2x mr-3 fa-question-circle-o o_notification_icon\" role=\"img\" aria-label=\"Notification undefined\" title=\"Notification undefined\"></span> <div class=\"d-flex align-items-center mr-auto font-weight-bold o_notification_title\">a0</div> <button type=\"button\" class=\"mb-1 close o_notification_close\" data-dismiss=\"toast\" aria-label=\"Close\"> <span class=\"d-inline\" aria-hidden=\"true\">×</span> </button> </div> <div class=\"toast-body\"> <div class=\"o_notification_content\">b0</div> <div class=\"mt-2 o_notification_buttons\"> <button type=\"button\" class=\"btn btn-primary\"> <span>accept0</span> </button><button type=\"button\" class=\"btn btn-secondary\"> <span>refuse0</span> </button> </div> </div>",
+ "<div class=\"toast-header\"> <span class=\"fa fa-2x mr-3 fa-question-circle o_notification_icon\" role=\"img\" aria-label=\"Notification undefined\" title=\"Notification undefined\"></span> <div class=\"d-flex align-items-center mr-auto font-weight-bold o_notification_title\">a0</div> <button type=\"button\" class=\"mb-1 close o_notification_close\" data-dismiss=\"toast\" aria-label=\"Close\"> <span class=\"d-inline\" aria-hidden=\"true\">×</span> </button> </div> <div class=\"toast-body\"> <div class=\"o_notification_content\">b0</div> <div class=\"mt-2 o_notification_buttons\"> <button type=\"button\" class=\"btn btn-primary\"> <span>accept0</span> </button><button type=\"button\" class=\"btn btn-secondary\"> <span>refuse0</span> </button> </div> </div>",
"should display notification");
testUtils.dom.click($notification.find('.o_notification_buttons button:contains(accept0)'));
diff --git a/addons/web/static/tests/views/form_tests.js b/addons/web/static/tests/views/form_tests.js
index e7729c878ee..d15d8a77def 100644
--- a/addons/web/static/tests/views/form_tests.js
+++ b/addons/web/static/tests/views/form_tests.js
@@ -1261,7 +1261,7 @@ QUnit.module('Views', {
return this._super.apply(this, arguments);
},
});
- assert.containsOnce(form, 'button.btn i.fa.fa-check');
+ assert.containsOnce(form, 'button.btn i.fas.fa-check');
assert.containsN(form, '.o_form_statusbar button', 3);
assert.containsOnce(form, 'button.p[name="post"]:contains(Confirm)');
assert.containsN(form, '.o_form_statusbar button:visible', 2);
@@ -2644,12 +2644,12 @@ QUnit.module('Views', {
"no confirm modal should be displayed");
assert.strictEqual(form.$('.o_pager_value').text(), '2', "pager value should be 2");
- assert.containsN(form, '.o_priority .fa-star-o', 2,
+ assert.containsN(form, '.o_priority .fa-star', 2,
'priority widget should have been rendered with correct value');
// edit the value in readonly
- await testUtils.dom.click(form.$('.o_priority .fa-star-o:first')); // click on the first star
- assert.containsOnce(form, '.o_priority .fa-star',
+ await testUtils.dom.click(form.$('.o_priority .fa-star:first')); // click on the first star
+ assert.containsOnce(form, '.o_priority .fas.fa-star',
'priority widget should have been updated');
await testUtils.dom.click('.o_pager_next'); // click on next
@@ -2996,30 +2996,30 @@ QUnit.module('Views', {
assert.containsN(form, '.o_priority .o_priority_star', 2,
'priority widget should have been rendered');
- assert.containsN(form, '.o_priority .fa-star-o', 2,
+ assert.containsN(form, '.o_priority .fa-star', 2,
'priority widget should have been rendered with correct value');
// edit the value in readonly
- await testUtils.dom.click(form.$('.o_priority .fa-star-o:first'));
+ await testUtils.dom.click(form.$('.o_priority .fa-star:first'));
assert.strictEqual(nbWrite, 1, 'should have saved directly');
- assert.containsOnce(form, '.o_priority .fa-star',
+ assert.containsOnce(form, '.o_priority .fas.fa-star',
'priority widget should have been updated');
// switch to edit mode and edit the value again
await testUtils.form.clickEdit(form);
assert.containsN(form, '.o_priority .o_priority_star', 2,
'priority widget should have been correctly rendered');
- assert.containsOnce(form, '.o_priority .fa-star',
+ assert.containsOnce(form, '.o_priority .far.fa-star',
'priority widget should have correct value');
- await testUtils.dom.click(form.$('.o_priority .fa-star-o:first'));
+ await testUtils.dom.click(form.$('.o_priority .far.fa-star:first'));
assert.strictEqual(nbWrite, 1, 'should not have saved directly');
- assert.containsN(form, '.o_priority .fa-star', 2,
+ assert.containsN(form, '.o_priority .fas.fa-star', 2,
'priority widget should have been updated');
// save
await testUtils.form.clickSave(form);
assert.strictEqual(nbWrite, 2, 'should not have saved directly');
- assert.containsN(form, '.o_priority .fa-star', 2,
+ assert.containsN(form, '.o_priority .fas.fa-star', 2,
'priority widget should have correct value');
form.destroy();
});
@@ -3455,7 +3455,7 @@ QUnit.module('Views', {
await testUtils.form.clickEdit(form);
await testUtils.dom.click(form.$('.o_data_cell').first());
await testUtils.fields.editInput(form.$('input[name=display_name]'), '');
- await testUtils.dom.click(form.$('.fa-trash-o').eq(1));
+ await testUtils.dom.click(form.$('.fa-trash-alt').eq(1));
assert.strictEqual($('.modal').find('.modal-title').first().text(), "Warning",
"Clicking out of a dirty line while editing should trigger a warning modal.");
@@ -4955,7 +4955,7 @@ QUnit.module('Views', {
arch: '<form string="Manufacturing Orders">' +
'<sheet>' +
'<div class="oe_button_box" name="button_box">' +
- '<button string="Inventory Moves" class="oe_stat_button" icon="fa-arrows-v"/>' +
+ '<button string="Inventory Moves" class="oe_stat_button" icon="fa-arrows-alt-v"/>' +
'</div>' +
'</sheet>' +
'</form>',
diff --git a/addons/web/static/tests/views/kanban_tests.js b/addons/web/static/tests/views/kanban_tests.js
index 7e5fd94d062..219f43634ef 100644
--- a/addons/web/static/tests/views/kanban_tests.js
+++ b/addons/web/static/tests/views/kanban_tests.js
@@ -2335,7 +2335,7 @@ QUnit.module('Views', {
'there should be only one tag in second record');
// Write on the record using the priority widget to trigger a re-render in readonly
- await testUtils.dom.click(kanban.$('.o_field_widget.o_priority a.o_priority_star.fa-star-o').first());
+ await testUtils.dom.click(kanban.$('.o_field_widget.o_priority a.o_priority_star.fa-star').first());
assert.verifySteps([
'/web/dataset/call_kw/partner/write',
'/web/dataset/call_kw/partner/read',
diff --git a/addons/web/static/tests/views/list_tests.js b/addons/web/static/tests/views/list_tests.js
index 8e4e43f6749..bc3e34840b1 100644
--- a/addons/web/static/tests/views/list_tests.js
+++ b/addons/web/static/tests/views/list_tests.js
@@ -3423,7 +3423,7 @@ QUnit.module('Views', {
assert.containsN(list, '.o_list_button', 4,
"there should be one button per row");
- assert.containsOnce(list, '.o_list_button:first .o_icon_button .fa.fa-car',
+ assert.containsOnce(list, '.o_list_button:first .o_icon_button .fas.fa-car',
'buttons should have correct icon');
await testUtils.dom.click(list.$('.o_list_button:first > button'));
diff --git a/addons/web/static/tests/views/search_panel_tests.js b/addons/web/static/tests/views/search_panel_tests.js
index 632158d9b1e..feefef1e004 100644
--- a/addons/web/static/tests/views/search_panel_tests.js
+++ b/addons/web/static/tests/views/search_panel_tests.js
@@ -186,7 +186,7 @@ QUnit.module('Views', {
<search>
<searchpanel>
<field name="company_id" icon="fa-car" color="blue"/>
- <field select="multi" name="state" icon="fa-star" color="#000"/>
+ <field select="multi" name="state" icon="far fa-star" color="#000"/>
</searchpanel>
</search>`,
},
diff --git a/addons/web/static/tests/widgets/company_switcher_tests.js b/addons/web/static/tests/widgets/company_switcher_tests.js
index 6b3ead230ca..aa4acb398e6 100644
--- a/addons/web/static/tests/widgets/company_switcher_tests.js
+++ b/addons/web/static/tests/widgets/company_switcher_tests.js
@@ -73,7 +73,7 @@ QUnit.module('widgets', {
assert.equal(menu.$('.company_label:contains(Company 3)').length, 1, "it should display Company 3")
assert.equal(menu.$('div[data-company-id=1] .fa-check-square').length, 1, "Company 1 should be checked")
- assert.equal(menu.$('div[data-company-id=2] .fa-square-o').length, 1, "Company 2 should not be checked")
+ assert.equal(menu.$('div[data-company-id=2] .fa-square').length, 1, "Company 2 should not be checked")
assert.equal(menu.$('div[data-company-id=3] .fa-check-square').length, 1, "Company 3 should be checked")
menu.destroy();
});