diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-24 16:15:24 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-24 16:15:24 +0100 |
commit | dab6aab220ebaf88d69ca5d54181dd8f14404e9f (patch) | |
tree | bd32f770f25dbea824d0d3d3ccb8cae14c064cd1 /spec | |
parent | 90f73438998e9f6eaefd19c446569eed6cfae34d (diff) | |
download | gitlab-ce-dab6aab220ebaf88d69ca5d54181dd8f14404e9f.tar.gz |
Assignee filter on group issues/merge requests only loads group usersgroup-assignee-dropdown-send-group-id
Closes #29490
Diffstat (limited to 'spec')
-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 |