From 4eef7131edf0ba22878b3795b2ed6b5ff91224bb Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Tue, 14 Feb 2017 10:19:59 +1100 Subject: [PATCH] check payment link exists --- .../connectors/user-profile-primary/link.hbs | 4 +++- .../javascripts/acceptance/choice-discourse-test.es6 | 12 ++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) 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');