diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-25 17:55:17 +0800 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-26 20:39:48 +0800 |
commit | 2f5c551f8b0e5f28f0c0e2266af63960e4253933 (patch) | |
tree | d9ef7312495a7283924e40e6504c25ec3641e359 /spec/features | |
parent | ad8a859b6efab6e9aabb8f4e5f1f0e38b1365a1a (diff) | |
download | gitlab-ce-2f5c551f8b0e5f28f0c0e2266af63960e4253933.tar.gz |
Add None/Any options for assignee in search bar
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/issues/filtered_search/dropdown_assignee_spec.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/spec/features/issues/filtered_search/dropdown_assignee_spec.rb b/spec/features/issues/filtered_search/dropdown_assignee_spec.rb index d011d2545bb..e910fb54d23 100644 --- a/spec/features/issues/filtered_search/dropdown_assignee_spec.rb +++ b/spec/features/issues/filtered_search/dropdown_assignee_spec.rb @@ -156,13 +156,21 @@ describe 'Dropdown assignee', :js do expect_filtered_search_input_empty end - it 'selects `no assignee`' do - find('#js-dropdown-assignee .filter-dropdown-item', text: 'No Assignee').click + it 'selects `None`' do + find('#js-dropdown-assignee .filter-dropdown-item', text: 'None').click expect(page).to have_css(js_dropdown_assignee, visible: false) expect_tokens([assignee_token('none')]) expect_filtered_search_input_empty end + + it 'selects `Any`' do + find('#js-dropdown-assignee .filter-dropdown-item', text: 'Any').click + + expect(page).to have_css(js_dropdown_assignee, visible: false) + expect_tokens([assignee_token('any')]) + expect_filtered_search_input_empty + end end describe 'selecting from dropdown without Ajax call' do |