summaryrefslogtreecommitdiff
path: root/addons/website/static/tests/website_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/tests/website_tests.js')
-rw-r--r--addons/website/static/tests/website_tests.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website/static/tests/website_tests.js b/addons/website/static/tests/website_tests.js
index 868e3cc4e8f..e2dbe53b1b1 100644
--- a/addons/website/static/tests/website_tests.js
+++ b/addons/website/static/tests/website_tests.js
@@ -44,9 +44,9 @@ QUnit.module('website', {
res_id: 1,
});
var selector = '.oe_button_box .oe_stat_button .o_stat_info[name="website_published"] .o_stat_text';
- assert.strictEqual(form.$(selector).length, 2, "there should be two texts displayed");
+ assert.containsN(form, selector, 2, "there should be two texts displayed");
selector = '.oe_button_box .oe_stat_button .o_stat_info[name="website_published"] .o_stat_text.o_value.text-danger';
- assert.strictEqual(form.$(selector).length, 1, "there should be one text in red");
+ assert.containsOnce(form, selector, "there should be one text in red");
form.destroy();
});
QUnit.test("widget website button: display true value", function (assert) {
@@ -69,9 +69,9 @@ QUnit.module('website', {
res_id: 2,
});
var selector = '.oe_button_box .oe_stat_button .o_stat_info[name="website_published"] .o_stat_text';
- assert.strictEqual(form.$(selector).length, 2, "should be two texts displayed");
+ assert.containsN(form, selector, 2, "should be two texts displayed");
selector = '.oe_button_box .oe_stat_button .o_stat_info[name="website_published"] .o_stat_text.o_value.text-success';
- assert.strictEqual(form.$(selector).length, 1, "there should be one text in green");
+ assert.containsOnce(form, selector, "there should be one text in green");
form.destroy();
});
});