DEV: Fix tests

This commit is contained in:
Justin DiRose 2020-07-28 15:40:16 -05:00
parent 83002fab3c
commit a1a7ca98a3
No known key found for this signature in database
GPG Key ID: 4B811FB264021800
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import Component from "@ember/component";
export default Component.extend({
init() {
this._super(...arguments);
if (this.plans.length === 1) {
if (this.plans && this.plans.length === 1) {
this.set("selectedPlan", this.plans[0].id);
}
},

View File

@ -12,6 +12,6 @@ acceptance("Discourse Subscriptions", {
QUnit.test("viewing product page", async assert => {
await visit("/s");
assert.ok($("#product-list").length, "has product page");
assert.ok($(".product-list").length, "has product page");
assert.ok($(".product:first-child a").length, "has a link");
});