name space tests

This commit is contained in:
Rimian Perkins 2020-01-10 14:24:39 +11:00
parent 431279a4f7
commit ba43e9d977
4 changed files with 6 additions and 10 deletions

View File

@ -1,18 +1,14 @@
import { acceptance } from "helpers/qunit-helpers"; import { acceptance } from "helpers/qunit-helpers";
import { stubStripe } from "discourse/plugins/discourse-subscriptions/helpers/stripe"; import { stubStripe } from "discourse/plugins/discourse-subscriptions/helpers/stripe";
acceptance("Discourse Patrons", { acceptance("Discourse Subscriptions", {
settings: {
discourse_patrons_amounts: "1.00|2.00"
},
beforeEach() { beforeEach() {
stubStripe(); stubStripe();
} }
}); });
QUnit.skip("viewing the one-off payment page", async assert => { QUnit.test("viewing payment page", async assert => {
await visit("/s"); await visit("/s");
assert.ok($(".donations-page-payment").length, "has payment form class"); assert.ok($("#product-list").length, "has payment page");
}); });

View File

@ -1,6 +1,6 @@
import { acceptance } from "helpers/qunit-helpers"; import { acceptance } from "helpers/qunit-helpers";
acceptance("Discourse Patrons", { acceptance("Discourse Subscriptions", {
settings: { settings: {
discourse_subscriptions_extra_nav_subscribe: true discourse_subscriptions_extra_nav_subscribe: true
} }

View File

@ -1,6 +1,6 @@
import { acceptance } from "helpers/qunit-helpers"; import { acceptance } from "helpers/qunit-helpers";
acceptance("Discourse Patrons", { acceptance("Discourse Subscriptions", {
settings: { settings: {
discourse_patrons_subscription_group: "plan-id" discourse_patrons_subscription_group: "plan-id"
}, },

View File

@ -1,7 +1,7 @@
export default function(helpers) { export default function(helpers) {
const { response } = helpers; const { response } = helpers;
this.get("/patrons/products", () => { this.get("/s/products", () => {
const products = [ const products = [
{ {
id: "prod_23o8I7tU4g56", id: "prod_23o8I7tU4g56",