summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-01-30 20:06:07 +0000
committerFatih Acet <acetfatih@gmail.com>2017-01-30 20:06:07 +0000
commit3995baad6aeabfaba1ae5e9f867ed66ce3e6038a (patch)
treeae67b922b3558ba63f61b32d405728c3700c4325 /spec
parent9e90edb3729b341c7ebe7d1c77063db0e1f8f19f (diff)
parent2c521dd245f73f64deef952f98f5ced32c53e89f (diff)
downloadgitlab-ce-3995baad6aeabfaba1ae5e9f867ed66ce3e6038a.tar.gz
Merge branch 'issue-sidebar-empty-assignee' into 'master'
Resets issue boards assignee dropdown Closes #26514 and #26814 See merge request !8540
Diffstat (limited to 'spec')
-rw-r--r--spec/features/boards/sidebar_spec.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/features/boards/sidebar_spec.rb b/spec/features/boards/sidebar_spec.rb
index 188d33e8ef4..c28bb0dcdae 100644
--- a/spec/features/boards/sidebar_spec.rb
+++ b/spec/features/boards/sidebar_spec.rb
@@ -141,6 +141,36 @@ describe 'Issue Boards', feature: true, js: true do
end
end
end
+
+ it 'resets assignee dropdown' do
+ page.within(first('.board')) do
+ first('.card').click
+ end
+
+ page.within('.assignee') do
+ click_link 'Edit'
+
+ wait_for_ajax
+
+ page.within('.dropdown-menu-user') do
+ click_link user.name
+
+ wait_for_vue_resource
+ end
+
+ expect(page).to have_content(user.name)
+ end
+
+ page.within(first('.board')) do
+ find('.card:nth-child(2)').click
+ end
+
+ page.within('.assignee') do
+ click_link 'Edit'
+
+ expect(page).not_to have_selector('.is-active')
+ end
+ end
end
context 'milestone' do