Commit 5e549a1c authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '244947-remove-designs-from-incdients' into 'master'

Remove designs from incidents

Closes #244947

See merge request gitlab-org/gitlab!41757
parents 4c63fe3b 43bcfcdc
- return if @issue.incident?
- requirements_link_url = help_page_path('user/project/issues/design_management', anchor: 'requirements')
- requirements_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: requirements_link_url }
- link_end = '</a>'.html_safe
......
---
title: Remove designs from incidents
merge_request: 41757
author:
type: changed
......@@ -20,6 +20,19 @@ RSpec.describe 'Issue Detail', :js do
end
end
context 'when user displays the issue as an incident' do
let(:issue) { create(:incident, project: project, author: user) }
before do
visit project_issue_path(project, issue)
wait_for_requests
end
it 'does not show design management' do
expect(page).not_to have_selector('.js-design-management')
end
end
context 'when issue description has xss snippet' do
before do
issue.update!(description: '![xss" onload=alert(1);//](a)')
......
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