1
0
mirror of synced 2026-07-19 22:45:18 +00:00

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
@@ -1,2 +1,4 @@
<a href="/users/{{model.username}}/payments">Payments page</a>
<div class="discourse-payments">
<a href="/users/{{model.username}}/payments">Payments page</a>
</div>
@@ -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');