17 lines
499 B
JavaScript
17 lines
499 B
JavaScript
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
import { stubStripe } from "discourse/plugins/discourse-subscriptions/helpers/stripe";
|
|
|
|
acceptance("Discourse Subscriptions", function (needs) {
|
|
needs.user();
|
|
needs.hooks.beforeEach(() => {
|
|
stubStripe();
|
|
});
|
|
|
|
test("viewing product page", async (assert) => {
|
|
await visit("/s");
|
|
|
|
assert.ok($(".product-list").length, "has product page");
|
|
assert.ok($(".product:first-child a").length, "has a link");
|
|
});
|
|
});
|