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"> <div class="discourse-donations">
<a href="/users/{{model.username}}/payments">Payments page</a> <a href="/users/{{model.username}}/payments">Donate</a>
</div> </div>

View File

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