diff --git a/assets/javascripts/discourse/templates/connectors/user-profile-primary/link.hbs b/assets/javascripts/discourse/templates/connectors/user-profile-primary/link.hbs index beb8bb9..6c4e8b2 100644 --- a/assets/javascripts/discourse/templates/connectors/user-profile-primary/link.hbs +++ b/assets/javascripts/discourse/templates/connectors/user-profile-primary/link.hbs @@ -1,2 +1,4 @@ -Payments page +
+ Payments page +
diff --git a/test/javascripts/acceptance/choice-discourse-test.es6 b/test/javascripts/acceptance/choice-discourse-test.es6 index 31c37f7..2bc6a93 100644 --- a/test/javascripts/acceptance/choice-discourse-test.es6 +++ b/test/javascripts/acceptance/choice-discourse-test.es6 @@ -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');