mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-06 14:53:13 +08:00
18 lines
572 B
JavaScript
18 lines
572 B
JavaScript
import { visit } from "@ember/test-helpers";
|
|
import { test } from "qunit";
|
|
import { acceptance } 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.dom(".product-list").exists("has product page");
|
|
assert.dom(".product:first-child a").exists("has a link");
|
|
});
|
|
});
|