check payment link exists
This commit is contained in:
parent
3f32c212d8
commit
4eef7131ed
|
@ -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';
|
import { acceptance } from 'helpers/qunit-helpers';
|
||||||
acceptance('Discourse Payments', { loggedIn: true });
|
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');
|
visit('/users/eviltrout/payments');
|
||||||
|
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
|
@ -10,7 +18,7 @@ test('Choice Page Exists', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Choice Page response happens', () => {
|
test('Payments Page response happens', () => {
|
||||||
visit('/users/eviltrout/payments');
|
visit('/users/eviltrout/payments');
|
||||||
|
|
||||||
click('.choice-btn');
|
click('.choice-btn');
|
||||||
|
|
Loading…
Reference in New Issue