18 lines
436 B
Plaintext
Raw Normal View History

2019-10-10 13:52:55 +11:00
import { acceptance } from "helpers/qunit-helpers";
2020-01-10 14:41:32 +11:00
import { stubStripe } from "discourse/plugins/discourse-subscriptions/helpers/stripe";
2019-10-10 13:52:55 +11:00
2020-01-10 14:24:39 +11:00
acceptance("Discourse Subscriptions", {
2020-01-10 14:41:32 +11:00
beforeEach() {
stubStripe();
2019-11-12 11:03:04 +11:00
},
2020-01-10 14:41:32 +11:00
2019-11-12 11:03:04 +11:00
loggedIn: true
2019-10-10 13:52:55 +11:00
});
2020-01-10 14:41:32 +11:00
QUnit.test("subscribing", async assert => {
await visit("/s");
2019-10-10 13:52:55 +11:00
2020-01-10 14:41:32 +11:00
assert.ok($("#product-list").length, "has product page");
assert.ok($(".product:first-child a").length, "has a link");
2019-10-10 13:52:55 +11:00
});