Commit 49831b53 authored by Clement Ho's avatar Clement Ho

Fix project name label's for reference in project settings

parent 73c54366
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%fieldset.append-bottom-0 %fieldset.append-bottom-0
.row .row
.form-group.col-md-9 .form-group.col-md-9
= f.label :name, class: 'label-light' do = f.label :name, class: 'label-light', for: 'project_name_edit' do
Project name Project name
= f.text_field :name, class: "form-control", id: "project_name_edit" = f.text_field :name, class: "form-control", id: "project_name_edit"
......
---
title: Fix project name label's for reference in project settings
merge_request: 8795
author:
...@@ -37,7 +37,7 @@ describe 'Edit Project Settings', feature: true do ...@@ -37,7 +37,7 @@ describe 'Edit Project Settings', feature: true do
it 'shows errors for invalid project path/name' do it 'shows errors for invalid project path/name' do
visit edit_namespace_project_path(project.namespace, project) visit edit_namespace_project_path(project.namespace, project)
fill_in 'Project name', with: 'foo&bar' fill_in 'project_name', with: 'foo&bar'
fill_in 'Path', with: 'foo&bar' fill_in 'Path', with: 'foo&bar'
click_button 'Rename project' click_button 'Rename project'
...@@ -53,7 +53,7 @@ describe 'Edit Project Settings', feature: true do ...@@ -53,7 +53,7 @@ describe 'Edit Project Settings', feature: true do
it 'shows error for invalid project name' do it 'shows error for invalid project name' do
visit edit_namespace_project_path(project.namespace, project) visit edit_namespace_project_path(project.namespace, project)
fill_in 'Project name', with: '🚀 foo bar ☁️' fill_in 'project_name', with: '🚀 foo bar ☁️'
click_button 'Rename project' click_button 'Rename project'
......
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