Skip to content

Commit

Permalink
Updated ember-hook selector for frost-select-dropdown input
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOtherDude committed Nov 2, 2016
1 parent 23130c7 commit 332d013
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().focus()
})

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

0 comments on commit 332d013

Please sign in to comment.