Skip to content

Commit

Permalink
Use wait in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Subtletree committed Jul 8, 2017
1 parent d4e324c commit 551a63c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/integration/components/paper-grid-list-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import wait from 'ember-test-helpers/wait';

moduleForComponent('paper-grid-list', 'Integration | Component | paper grid list', {
integration: true
Expand All @@ -14,8 +15,9 @@ test('it renders tiles with tag name', function(assert) {
{{/grid.tile}}
{{/paper-grid-list}}
`);

assert.equal(this.$('md-grid-tile').length, 1);
return wait().then(() => {
assert.equal(this.$('md-grid-tile').length, 1);
});
});

test('it renders tiles with footer', function(assert) {
Expand All @@ -29,6 +31,7 @@ test('it renders tiles with footer', function(assert) {
{{/grid.tile}}
{{/paper-grid-list}}
`);

assert.equal(this.$('md-grid-tile-footer').length, 1);
return wait().then(() => {
assert.equal(this.$('md-grid-tile-footer').length, 1);
});
});

0 comments on commit 551a63c

Please sign in to comment.