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

19 lines
448 B
Plaintext
Raw Normal View History

2019-10-08 20:53:58 -04:00
import { acceptance } from "helpers/qunit-helpers";
import { stubStripe } from "discourse/plugins/discourse-patrons/helpers/stripe";
acceptance("Discourse Patrons", {
settings: {
discourse_patrons_amounts: "1.00|2.00"
},
beforeEach() {
stubStripe();
}
});
2019-10-09 22:52:55 -04:00
QUnit.test("viewing the one-off payment page", async assert => {
2019-10-08 20:53:58 -04:00
await visit("/patrons");
assert.ok($(".donations-page-payment").length, "has payment form class");
});