name space tests
This commit is contained in:
parent
431279a4f7
commit
ba43e9d977
|
@ -1,18 +1,14 @@
|
|||
import { acceptance } from "helpers/qunit-helpers";
|
||||
import { stubStripe } from "discourse/plugins/discourse-subscriptions/helpers/stripe";
|
||||
|
||||
acceptance("Discourse Patrons", {
|
||||
settings: {
|
||||
discourse_patrons_amounts: "1.00|2.00"
|
||||
},
|
||||
|
||||
acceptance("Discourse Subscriptions", {
|
||||
beforeEach() {
|
||||
stubStripe();
|
||||
}
|
||||
});
|
||||
|
||||
QUnit.skip("viewing the one-off payment page", async assert => {
|
||||
QUnit.test("viewing payment page", async assert => {
|
||||
await visit("/s");
|
||||
|
||||
assert.ok($(".donations-page-payment").length, "has payment form class");
|
||||
assert.ok($("#product-list").length, "has payment page");
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Discourse Patrons", {
|
||||
acceptance("Discourse Subscriptions", {
|
||||
settings: {
|
||||
discourse_subscriptions_extra_nav_subscribe: true
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Discourse Patrons", {
|
||||
acceptance("Discourse Subscriptions", {
|
||||
settings: {
|
||||
discourse_patrons_subscription_group: "plan-id"
|
||||
},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export default function(helpers) {
|
||||
const { response } = helpers;
|
||||
|
||||
this.get("/patrons/products", () => {
|
||||
this.get("/s/products", () => {
|
||||
const products = [
|
||||
{
|
||||
id: "prod_23o8I7tU4g56",
|
||||
|
|
Loading…
Reference in New Issue