Commit 80e671ae authored by Annabel Gray's avatar Annabel Gray

Merge branch 'add-title-placeholder-for-new-issues' into 'master'

Add title placeholder for new issues

Closes #48085

See merge request gitlab-org/gitlab-ce!20271
parents 9ce5b098 5870d5e4
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
%div{ class: div_class } %div{ class: div_class }
= form.text_field :title, required: true, maxlength: 255, autofocus: true, = form.text_field :title, required: true, maxlength: 255, autofocus: true,
autocomplete: 'off', class: 'form-control pad qa-issuable-form-title' autocomplete: 'off', class: 'form-control pad qa-issuable-form-title', placeholder: _('Title')
- if issuable.respond_to?(:work_in_progress?) - if issuable.respond_to?(:work_in_progress?)
%p.form-text.text-muted %p.form-text.text-muted
......
---
title: Add title placeholder for new issues
merge_request: 20271
author: George Tsiolis
type: changed
...@@ -17,6 +17,9 @@ describe "User creates issue" do ...@@ -17,6 +17,9 @@ describe "User creates issue" do
expect(page).to have_no_content("Assign to") expect(page).to have_no_content("Assign to")
.and have_no_content("Labels") .and have_no_content("Labels")
.and have_no_content("Milestone") .and have_no_content("Milestone")
expect(page.find('#issue_title')['placeholder']).to eq 'Title'
expect(page.find('#issue_description')['placeholder']).to eq 'Write a comment or drag your files here…'
end end
issue_title = "500 error on profile" issue_title = "500 error on profile"
......
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