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
This commit is contained in:
Annabel Gray 2018-07-02 17:31:08 +00:00
commit 80e671aea3
3 changed files with 9 additions and 1 deletions

View file

@ -6,7 +6,7 @@
%div{ class: div_class }
= 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?)
%p.form-text.text-muted

View file

@ -0,0 +1,5 @@
---
title: Add title placeholder for new issues
merge_request: 20271
author: George Tsiolis
type: changed

View file

@ -17,6 +17,9 @@ describe "User creates issue" do
expect(page).to have_no_content("Assign to")
.and have_no_content("Labels")
.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
issue_title = "500 error on profile"