Skip to content

Commit

Permalink
Working acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrism committed Jun 9, 2018
1 parent 6cef5b2 commit 34a4583
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/components/tomster-title/template.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<h1>{{@title}}</h1>
<h1 id="tomster-title">{{@title}}</h1>
13 changes: 13 additions & 0 deletions tests/acceptance/home-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { module, test } from 'qunit';
import { visit, find } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';

module('Acceptance | home', function(hooks) {
setupApplicationTest(hooks);

test('visiting /', async function(assert) {
await visit('/');

assert.equal(find('#tomster-title').textContent, 'tomster');
});
});

0 comments on commit 34a4583

Please sign in to comment.