check payment link exists

This commit is contained in:
Rimian Perkins 2017-02-14 10:19:59 +11:00
parent 3f32c212d8
commit 4eef7131ed
2 changed files with 13 additions and 3 deletions

View File

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

View File

@ -1,7 +1,15 @@
import { acceptance } from 'helpers/qunit-helpers';
acceptance('Discourse Payments', { loggedIn: true });
test('Choice Page Exists', () => {
test('Payments Link Exists', () => {
visit('/users/eviltrout');
andThen(() => {
ok(exists('.discourse-payments > a'), 'Link exists on profile page');
});
});
test('Payments Page Exists', () => {
visit('/users/eviltrout/payments');
andThen(() => {
@ -10,7 +18,7 @@ test('Choice Page Exists', () => {
});
});
test('Choice Page response happens', () => {
test('Payments Page response happens', () => {
visit('/users/eviltrout/payments');
click('.choice-btn');