acceptacnce test verifies page renders

This commit is contained in:
Rimian Perkins 2017-02-13 11:35:59 +11:00
parent f5cf206bce
commit 800aef7b3f
3 changed files with 12 additions and 9 deletions

View File

@ -1 +1,3 @@
{{email}}
<div class="payments">
{{username}}
</div>

1
jsapp Symbolic link
View File

@ -0,0 +1 @@
assets/javascripts/discourse

View File

@ -1,11 +1,11 @@
import { acceptance } from 'helpers/qunit-helpers';
acceptance('Choice Discourse', { loggedIn: true });
// test('Choice Page Exists', () => {
// visit('/user');
//
// andThen(() => {
// ok(exists('h1'), 'Choice');
// ok(exists('form'), 'Something');
// });
// });
test('Choice Page Exists', () => {
visit('/users/eviltrout/choice');
andThen(() => {
ok(exists('h1'), 'Choice');
ok(exists('.payments'), 'eviltrout');
});
});