discourse-subscriptions/test/javascripts/acceptance/payments-test.js.es6

18 lines
445 B
Plaintext
Raw Normal View History

2019-10-08 20:53:58 -04:00
import { acceptance } from "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
2020-01-09 22:24:39 -05:00
acceptance("Discourse Subscriptions", {
2019-10-08 20:53:58 -04:00
beforeEach() {
stubStripe();
2020-01-09 22:41:32 -05:00
},
loggedIn: true
2019-10-08 20:53:58 -04:00
});
2020-01-09 22:41:32 -05:00
QUnit.test("viewing product page", async assert => {
2019-12-02 19:00:03 -05:00
await visit("/s");
2019-10-08 20:53:58 -04:00
2020-01-09 22:41:32 -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
});