fix the test runner

This commit is contained in:
Rimian Perkins 2019-08-26 16:01:57 +10:00
parent 2df3e0d85a
commit d0bdfab44b
3 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<form id="payment-form" class="form-horizontal">
<div class="control-group">
<div class="control-group discourse-donations-cause">
<label class="control-label">
{{i18n 'discourse_donations.cause.label'}}
</label>

View File

@ -1,7 +1,7 @@
# name: discourse-donations
# about: Integrates Stripe into Discourse to allow forum visitors to make donations
# version: 1.11.1
# url: https://github.com/chrisbeach/discourse-donations
# version: 1.11.2
# url: https://github.com/rimian/discourse-donations
# authors: Rimian Perkins, Chris Beach, Angus McLeod
gem 'stripe', '2.8.0'

View File

@ -2,10 +2,14 @@ import { acceptance } from 'helpers/qunit-helpers';
acceptance('Discourse Donations', {
loggedIn: true,
settings: {},
settings: {
discourse_donations_enabled: true,
discourse_donations_types: '',
discourse_donations_amounts: '1',
},
});
test('test runs without a crash', (assert) => {
visit('/');
assert.ok(true, 'test runs');
QUnit.test("donate page has a form on it", async assert => {
await visit("/donate");
assert.ok(exists(".donations-page-donations"));
});