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:
commit
80e671aea3
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Add title placeholder for new issues
|
||||
merge_request: 20271
|
||||
author: George Tsiolis
|
||||
type: changed
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue