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({
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
if (this.plans.length === 1) {
|
||||
if (this.plans && this.plans.length === 1) {
|
||||
this.set("selectedPlan", this.plans[0].id);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue