acceptance test link

This commit is contained in:
Rimian Perkins 2017-02-24 13:09:27 +11:00
parent 23850afeb1
commit 97e4497cc8
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<div class="discourse-payments">
<a href="/users/{{model.username}}/payments">Payments page</a>
<div class="discourse-donations">
<a href="/users/{{model.username}}/payments">Donate</a>
</div>

View File

@ -1,10 +1,10 @@
import { acceptance } from 'helpers/qunit-helpers';
acceptance('Discourse Donations', { loggedIn: true });
test('Payments Link Exists', () => {
test('Donations Link Exists', () => {
visit('/users/eviltrout');
andThen(() => {
ok(exists('.discourse-payments > a'), 'Link exists on profile page');
ok(exists('.discourse-donations > a'), 'Link exists on profile page');
});
});