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