diff options
author | Phil Hughes <me@iamphill.com> | 2017-01-17 18:22:48 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-01-17 18:22:48 +0300 |
commit | 92682b8ae1ee0620916bdebfe3194967ce1eb2e7 (patch) | |
tree | f5b43dff0bf4f6ab5d8d3026accb5e3f3b87d9ba /spec/features/issues/filtered_search/dropdown_author_spec.rb | |
parent | e7fdb1aae5a61b30f66ea3489d4e0759ed8ea3a1 (diff) |
Shows current user on top of filtered dropdown list
Diffstat (limited to 'spec/features/issues/filtered_search/dropdown_author_spec.rb')
-rw-r--r-- | spec/features/issues/filtered_search/dropdown_author_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/issues/filtered_search/dropdown_author_spec.rb b/spec/features/issues/filtered_search/dropdown_author_spec.rb index 60a86cc93d4..464749d01e3 100644 --- a/spec/features/issues/filtered_search/dropdown_author_spec.rb +++ b/spec/features/issues/filtered_search/dropdown_author_spec.rb @@ -66,6 +66,12 @@ describe 'Dropdown author', js: true, feature: true do expect(dropdown_author_size).to eq(3) end + + it 'shows current user at top of dropdown' do + send_keys_to_filtered_search('author:') + + expect(first('#js-dropdown-author li')).to have_content(user.name) + end end describe 'filtering' do |