Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsmith committed Nov 1, 2017
1 parent 5c500b4 commit 5060747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions tests/integration/components/user/skills-list-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ moduleForComponent('user/skills-list', 'Integration | Component | user/skills li

test('it renders each skill in the list', function(assert) {
assert.expect(3);

this.set('user', user);

page.render(hbs`{{user/skills-list user=user}}`);

assert.equal(page.listItems().count, 2);
assert.equal(page.listItems(0).text, 'Ember.js');
assert.equal(page.listItems(1).text, 'JavaScript');
Expand Down
7 changes: 3 additions & 4 deletions tests/pages/components/user/skills-list.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import {
collection,
create
collection
} from 'ember-cli-page-object';

export default create({
export default {
scope: '.user__skills-list',

listItems: collection({
itemScope: '[data-test-user-skills-list-item]'
})
});
};

0 comments on commit 5060747

Please sign in to comment.