summaryrefslogtreecommitdiff
path: root/spec/features/dashboard
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2017-05-17 15:26:52 +0000
committerPhil Hughes <me@iamphill.com>2017-05-17 15:26:52 +0000
commitde9e559d4495560095adfa03ea6489ea51f6f2f4 (patch)
treefd8e8910771ea53eaa308ec97c209977e6388594 /spec/features/dashboard
parent1930c19cbd744c268f2c234d8f43951a094a37d9 (diff)
downloadgitlab-ce-de9e559d4495560095adfa03ea6489ea51f6f2f4.tar.gz
Fix unassigned checkmark
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r--spec/features/dashboard/issues_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/dashboard/issues_spec.rb b/spec/features/dashboard/issues_spec.rb
index 86c7954e60c..7a132dba1e9 100644
--- a/spec/features/dashboard/issues_spec.rb
+++ b/spec/features/dashboard/issues_spec.rb
@@ -26,9 +26,20 @@ RSpec.describe 'Dashboard Issues', feature: true do
expect(page).not_to have_content(other_issue.title)
end
+ it 'shows checkmark when unassigned is selected for assignee', js: true do
+ find('.js-assignee-search').click
+ find('li', text: 'Unassigned').click
+ find('.js-assignee-search').click
+
+ expect(find('li[data-user-id="0"] a.is-active')).to be_visible
+ end
+
it 'shows issues when current user is author', js: true do
find('#assignee_id', visible: false).set('')
find('.js-author-search', match: :first).click
+
+ expect(find('li[data-user-id="null"] a.is-active')).to be_visible
+
find('.dropdown-menu-author li a', match: :first, text: current_user.to_reference).click
find('.js-author-search', match: :first).click