diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-04-26 10:19:40 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-04-26 10:19:40 +0000 |
commit | 99051546d3e75b66ae8f5becd5550967113b1fa7 (patch) | |
tree | 210d489e71d889c00bcf94ab2dcc3f791ed22354 /spec/features | |
parent | 3ff8d8020e495df319f0b0921bc94b1c3470f6f0 (diff) | |
parent | dab6aab220ebaf88d69ca5d54181dd8f14404e9f (diff) | |
download | gitlab-ce-99051546d3e75b66ae8f5becd5550967113b1fa7.tar.gz |
Merge branch 'group-assignee-dropdown-send-group-id' into 'master'
Assignee filter on group issues/merge requests only loads group users
Closes #29490
See merge request !10884
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/groups/issues_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/groups/issues_spec.rb b/spec/features/groups/issues_spec.rb index 1b3747c390b..45f57845c74 100644 --- a/spec/features/groups/issues_spec.rb +++ b/spec/features/groups/issues_spec.rb @@ -23,4 +23,20 @@ feature 'Group issues page', feature: true do it_behaves_like "an autodiscoverable RSS feed without a private token" end end + + context 'assignee', :js do + let(:access_level) { ProjectFeature::ENABLED } + let(:user) { user_in_group } + let(:user2) { user_outside_group } + let(:path) { issues_group_path(group) } + + it 'filters by only group users' do + click_button('Assignee') + + wait_for_ajax + + expect(find('.dropdown-menu-assignee')).to have_link(user.name) + expect(find('.dropdown-menu-assignee')).not_to have_link(user2.name) + end + end end |