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

@ -5,8 +5,8 @@ moduleForWidget("header");
widgetTest("rendering basics", {
template: '{{mount-widget widget="header"}}',
test(assert) {
assert.ok(this.$("header.d-header").length);
assert.ok(this.$("#site-logo").length);
assert.ok(find("header.d-header").length);
assert.ok(find("#site-logo").length);
}
});
@ -22,8 +22,8 @@ widgetTest("sign up / login buttons", {
},
async test(assert) {
assert.ok(this.$("button.sign-up-button").length);
assert.ok(this.$("button.login-button").length);
assert.ok(find("button.sign-up-button").length);
assert.ok(find("button.login-button").length);
await click("button.sign-up-button");
assert.ok(this.signupShown);