Commit 623ec737 authored by Nathan Friend's avatar Nathan Friend

Update project MR setting section description (EE)

This commit updates the merge requests description text in the project
settings page.
parent 94c60821
......@@ -9,7 +9,7 @@
- if @project.feature_available?(:issuable_default_templates)
.form-group
= form.label :merge_requests_template, class: 'label-bold' do
Default description template for merge requests
= _('Default description template for merge requests')
= link_to icon('question-circle'), help_page_path('user/project/description_templates', anchor: 'setting-a-default-template-for-issues-and-merge-requests'), target: '_blank'
= form.text_area :merge_requests_template, class: "form-control", rows: 3
.text-secondary
......
- if @project.feature_available?(:issuable_default_templates)
%p= s_('ProjectSettings|Choose your merge method, merge options, merge checks, and set up a default description template for merge requests.')
- else
%p= s_('ProjectSettings|Choose your merge method, merge options, and merge checks.')
---
title: Update merge requests section description text on project settings page
merge_request: 11098
author:
type: changed
......@@ -98,6 +98,12 @@ describe 'Project settings > [EE] Merge Requests', :js do
expect(page).not_to have_selector('#project_merge_requests_template')
end
it "does not mention the merge request template in the section's description text" do
visit edit_project_path(project)
expect(page).to have_content('Choose your merge method, merge options, and merge checks.')
end
end
context 'issuable default templates feature is available' do
......@@ -105,11 +111,17 @@ describe 'Project settings > [EE] Merge Requests', :js do
stub_licensed_features(issuable_default_templates: true)
end
it 'input to configure merge request template is not shown' do
it 'input to configure merge request template is shown' do
visit edit_project_path(project)
expect(page).to have_selector('#project_merge_requests_template')
end
it "mentions the merge request template in the section's description text" do
visit edit_project_path(project)
expect(page).to have_content('Choose your merge method, merge options, merge checks, and set up a default description template for merge requests.')
end
end
shared_examples 'the merge train feature is not available' do
......
......@@ -2504,9 +2504,6 @@ msgstr ""
msgid "Choose which shards you wish to synchronize to this secondary node."
msgstr ""
msgid "Choose your merge method, options, checks, and set up a default merge request description template."
msgstr ""
msgid "CiStatusLabel|canceled"
msgstr ""
......@@ -4015,6 +4012,9 @@ msgstr ""
msgid "Default description template for issues"
msgstr ""
msgid "Default description template for merge requests"
msgstr ""
msgid "Default first day of the week"
msgstr ""
......@@ -10385,6 +10385,12 @@ msgstr ""
msgid "ProjectSettings|Badges"
msgstr ""
msgid "ProjectSettings|Choose your merge method, merge options, and merge checks."
msgstr ""
msgid "ProjectSettings|Choose your merge method, merge options, merge checks, and set up a default description template for merge requests."
msgstr ""
msgid "ProjectSettings|Contact an admin to change this setting."
msgstr ""
......
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