Skip to content

Commit

Permalink
[TODO] Add todo for emberjs#16256
Browse files Browse the repository at this point in the history
  • Loading branch information
Serabe committed Feb 23, 2018
1 parent a2ba111 commit b00e479
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/ember-glimmer/tests/integration/helpers/input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,19 @@ moduleFor('Helpers test: {{input}} with dynamic type', class extends InputRender

this.assertAttr('type', 'text');
}

['@todo [GH#16256] input can be rendered twice'](assert) {
this.registerComponent('input-wrapper', {
template: '<label>My label</label>{{input type=type}}'
});
this.render(`{{input-wrapper type=firstType}}{{input-wrapper type=secondType}}`, {
firstType: 'email',
secondType: 'password'
});

let input = this.element.querySelectorAll('input');
assert.equal(input.length, 2, 'there are two inputs');
}
});

moduleFor(`Helpers test: {{input type='checkbox'}}`, class extends InputRenderingTest {
Expand Down

0 comments on commit b00e479

Please sign in to comment.