Commit c266b5f5 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Merge branch...

Merge branch '31384-new-issue-button-on-no-results-page-after-search-doesn-t-go-to-correct-form' into 'master'

Remove 'New Issue' button from 'There are no issues to show' state graphic

Closes #31384

See merge request !11263
parents b1873771 80ec3f27
...@@ -20,4 +20,3 @@ ...@@ -20,4 +20,3 @@
- else - else
.text-center .text-center
%h4 There are no issues to show. %h4 There are no issues to show.
= link_to 'New issue', button_path, class: 'btn btn-new', title: 'New issue', id: 'new_issue_link'
---
title: Remove 'New issue' button when issues search returns no results.
merge_request: !11263
author:
...@@ -573,6 +573,8 @@ describe 'Issues', feature: true do ...@@ -573,6 +573,8 @@ describe 'Issues', feature: true do
end end
describe 'new issue' do describe 'new issue' do
let!(:issue) { create(:issue, project: project) }
context 'by unauthenticated user' do context 'by unauthenticated user' do
before do before do
logout logout
......
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