17 lines
499 B
JavaScript
Raw Normal View History

import { acceptance } from "discourse/tests/helpers/qunit-helpers";
2019-12-03 11:00:03 +11:00
import { stubStripe } from "discourse/plugins/discourse-subscriptions/helpers/stripe";
2019-10-09 11:53:58 +11:00
acceptance("Discourse Subscriptions", function (needs) {
needs.user();
needs.hooks.beforeEach(() => {
2019-10-09 11:53:58 +11:00
stubStripe();
});
2020-01-10 14:41:32 +11:00
test("viewing product page", async (assert) => {
await visit("/s");
2019-10-09 11:53:58 +11:00
assert.ok($(".product-list").length, "has product page");
assert.ok($(".product:first-child a").length, "has a link");
});
2019-10-09 11:53:58 +11:00
});