Commit bf934a8f authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'admin-welcome-new-group-link' into 'master'

Fixes admin welcome states new group path

Closes #40645

See merge request gitlab-org/gitlab-ce!15761
parents 102b3232 4783f15a
No related merge requests found
......@@ -10,7 +10,7 @@
Projects are where you store your code, access issues, wiki and other features of GitLab.
- if current_user.can_create_group?
= link_to admin_root_path, class: "blank-state-link" do
= link_to new_group_path, class: "blank-state-link" do
.blank-state
.blank-state-icon
= custom_icon("add_new_group", size: 50)
......
---
title: Fixed admin welcome screen new group path
merge_request:
author:
type: fixed
require 'spec_helper'
describe 'dashboard/projects/_blank_state_admin_welcome.html.haml' do
let(:user) { create(:admin) }
before do
allow(view).to receive(:current_user).and_return(user)
end
it 'links to new group path' do
render
expect(rendered).to have_link('Create a group', href: new_group_path)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment