diff options
Diffstat (limited to 'addons/web/static/tests/fields/upgrade_fields_tests.js')
| -rw-r--r-- | addons/web/static/tests/fields/upgrade_fields_tests.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/tests/fields/upgrade_fields_tests.js b/addons/web/static/tests/fields/upgrade_fields_tests.js index 15c32eeeaf0..65de67a7951 100644 --- a/addons/web/static/tests/fields/upgrade_fields_tests.js +++ b/addons/web/static/tests/fields/upgrade_fields_tests.js @@ -32,7 +32,7 @@ QUnit.module('upgrade_fields', { arch: '<form><field name="bar" widget="upgrade_boolean"/></form>', }); - form.$('input:checkbox').click(); + testUtils.dom.click(form.$('input:checkbox')); assert.strictEqual($('.modal').length, 1, "the 'Upgrade to Enterprise' dialog should be opened"); @@ -52,9 +52,9 @@ QUnit.module('upgrade_fields', { '</form>', }); - assert.strictEqual(form.$('.o_field .badge').length, 0, + assert.containsNone(form, '.o_field .badge', "the upgrade badge shouldn't be inside the field section"); - assert.strictEqual(form.$('.o_label .badge').length, 1, + assert.containsOnce(form, '.o_label .badge', "the upgrade badge should be inside the label section"); assert.strictEqual(form.$('.o_label').text(), "Bar EnterpriseCoucou", "the upgrade label should be inside the label section"); |
