summaryrefslogtreecommitdiff
path: root/spec/features/issues/issue_sidebar_spec.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-30 07:56:36 +0000
committerTimothy Andrew <mail@timothyandrew.net>2017-06-08 10:04:10 +0000
commitb484ebf5109bf9af82b2ee901a3a9322571ad0dd (patch)
tree2218c0a6e31adfcc5da4e7d25209c6fa0a2af6e0 /spec/features/issues/issue_sidebar_spec.rb
parentd27721e97315ef9de9003bc5d620046189dc9b09 (diff)
downloadgitlab-ce-b484ebf5109bf9af82b2ee901a3a9322571ad0dd.tar.gz
Merge branch '2472-assignee-dropdown-does-not-display-selected-assignee-ce' into 'master'
Assignee dropdown does not display selected assignee Closes #2472 See merge request !11744 Conflicts: app/assets/javascripts/users_select.js
Diffstat (limited to 'spec/features/issues/issue_sidebar_spec.rb')
-rw-r--r--spec/features/issues/issue_sidebar_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/issues/issue_sidebar_spec.rb b/spec/features/issues/issue_sidebar_spec.rb
index 0de0f93089a..d1f110c13ae 100644
--- a/spec/features/issues/issue_sidebar_spec.rb
+++ b/spec/features/issues/issue_sidebar_spec.rb
@@ -57,6 +57,23 @@ feature 'Issue Sidebar', feature: true do
expect(page.find('.dropdown-menu-user-link.is-active')).to have_content(user.name)
end
end
+
+ it 'keeps your filtered term after filtering and dismissing the dropdown' do
+ find('.dropdown-input-field').native.send_keys user2.name
+
+ wait_for_requests
+
+ page.within '.dropdown-menu-user' do
+ expect(page).not_to have_content 'Unassigned'
+ click_link user2.name
+ end
+
+ find('.js-right-sidebar').click
+ find('.block.assignee .edit-link').click
+
+ expect(page.all('.dropdown-menu-user li').length).to eq(1)
+ expect(find('.dropdown-input-field').value).to eq(user2.name)
+ end
end
context 'as a allowed user' do