summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-05-15 18:31:08 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-05-16 12:02:12 -0500
commit0654955f6bf270c6650657be48eb687854ac33fb (patch)
treed7c7c7b8b807659910ebc68e9d3d0ecc2be3a1a7
parent8fc68b6821d355f6da0385ce2d2a2813ffde114a (diff)
downloadgitlab-ce-fix-unassigned-checkmark.tar.gz
-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