DEV: uses find() helper instead of this.$() in js tests (#7062)

This commit is contained in:
Joffrey JAFFEUX
2019-02-25 16:04:55 +01:00
committed by GitHub
parent c0dd171cf1
commit 5952a6c0ad
22 changed files with 332 additions and 318 deletions

View File

@ -6,7 +6,7 @@ componentTest("renders correctly with no properties set", {
template: `{{text-field}}`,
test(assert) {
assert.ok(this.$("input[type=text]").length);
assert.ok(find("input[type=text]").length);
}
});
@ -18,8 +18,8 @@ componentTest("support a placeholder", {
},
test(assert) {
assert.ok(this.$("input[type=text]").length);
assert.equal(this.$("input").prop("placeholder"), "placeholder.i18n.key");
assert.ok(find("input[type=text]").length);
assert.equal(find("input").prop("placeholder"), "placeholder.i18n.key");
}
});
@ -30,7 +30,7 @@ componentTest("sets the dir attribute to ltr for Hebrew text", {
},
test(assert) {
assert.equal(this.$("input").attr("dir"), "rtl");
assert.equal(find("input").attr("dir"), "rtl");
}
});
@ -41,6 +41,6 @@ componentTest("sets the dir attribute to ltr for English text", {
},
test(assert) {
assert.equal(this.$("input").attr("dir"), "ltr");
assert.equal(find("input").attr("dir"), "ltr");
}
});