DEV: Fix tests
This commit is contained in:
parent
83002fab3c
commit
a1a7ca98a3
|
@ -3,7 +3,7 @@ import Component from "@ember/component";
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
if (this.plans.length === 1) {
|
if (this.plans && this.plans.length === 1) {
|
||||||
this.set("selectedPlan", this.plans[0].id);
|
this.set("selectedPlan", this.plans[0].id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -12,6 +12,6 @@ acceptance("Discourse Subscriptions", {
|
||||||
QUnit.test("viewing product page", async assert => {
|
QUnit.test("viewing product page", async assert => {
|
||||||
await visit("/s");
|
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");
|
assert.ok($(".product:first-child a").length, "has a link");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue