mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-24 14:49:57 +08:00
19 lines
632 B
JavaScript
Vendored
19 lines
632 B
JavaScript
Vendored
/* eslint-disable qunit/no-loose-assertions */
|
|
import { visit } from "@ember/test-helpers";
|
|
import { test } from "qunit";
|
|
import { acceptance, count } from "discourse/tests/helpers/qunit-helpers";
|
|
import { stubStripe } from "discourse/plugins/discourse-subscriptions/helpers/stripe";
|
|
|
|
acceptance("Subscriptions", function (needs) {
|
|
needs.user();
|
|
needs.hooks.beforeEach(function () {
|
|
stubStripe();
|
|
});
|
|
|
|
test("viewing product page", async function (assert) {
|
|
await visit("/s");
|
|
|
|
assert.ok(count(".product-list") > 0, "has product page");
|
|
assert.ok(count(".product:first-child a") > 0, "has a link");
|
|
});
|
|
});
|