Skip to content

Commit

Permalink
Merge pull request #218 from TheOtherDude/ember-hook-select-input
Browse files Browse the repository at this point in the history
Updated ember-hook selector for frost-select-dropdown input
  • Loading branch information
TheOtherDude committed Nov 2, 2016
2 parents 23130c7 + 3e36464 commit ca0258e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions addon/templates/components/frost-select-dropdown.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
style={{listStyle}}
>
{{frost-text
hook=(concat receivedHook '-list-input')
onInput=onFilterInput
value=filter
}}
Expand Down
12 changes: 12 additions & 0 deletions tests/integration/components/frost-select-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -974,4 +974,16 @@ describeComponent(...integration('frost-select'), function () {
})
})
})

describe('ember-hook selectors', function () {
describe('when dropdown is open', function () {
beforeEach(function () {
$hook('select').click()
})

it('can find dropdown input', function () {
expect($hook('select-list-input')).to.have.length(1)
})
})
})
})

0 comments on commit ca0258e

Please sign in to comment.