diff options
author | James Gregory <james.gregory@epigenesys.org.uk> | 2016-11-28 17:14:05 +0000 |
---|---|---|
committer | James Gregory <james.gregory@epigenesys.org.uk> | 2016-12-02 15:18:47 +0000 |
commit | 454e963196fdbded9ef8c530b0457a8c489e810d (patch) | |
tree | 872f7b7d408e4230e562ec3e3db4ecbd2951cb7e /spec | |
parent | a1556200421f8e55fe1999a004694831553321dc (diff) | |
download | gitlab-ce-454e963196fdbded9ef8c530b0457a8c489e810d.tar.gz |
The admin user projects view now has a clickable group link
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/admin/admin_users_spec.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/features/admin/admin_users_spec.rb b/spec/features/admin/admin_users_spec.rb index cb3191dfdde..e31325ce47b 100644 --- a/spec/features/admin/admin_users_spec.rb +++ b/spec/features/admin/admin_users_spec.rb @@ -225,4 +225,32 @@ describe "Admin::Users", feature: true do end end end + + describe "GET /admin/users/:id/projects" do + before do + @group = create(:group) + @project = create(:project, group: @group) + @simple_user = create(:user) + @group.add_developer(@simple_user) + + visit projects_admin_user_path(@simple_user) + end + + it "lists group projects" do + within(:css, '.append-bottom-default + .panel') do + expect(page).to have_content 'Group projects' + expect(page).to have_link @group.name, admin_group_path(@group) + end + end + + it 'allows navigation to the group details' do + within(:css, '.append-bottom-default + .panel') do + click_link @group.name + end + within(:css, 'h3.page-title') do + expect(page).to have_content "Group: #{@group.name}" + end + expect(page).to have_content @project.name + end + end end |