19 lines
595 B
JavaScript
Raw Normal View History

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