Commit d0a25eb0 authored by Kushal Pandya's avatar Kushal Pandya Committed by Phil Hughes

Show password field mask while editing service settings

parent 2079253f
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
.form-group .form-group
- if type == "password" && value.present? - if type == "password" && value.present?
= form.label name, "Change #{title}", class: "control-label" = form.label name, "Enter new #{title.downcase}", class: "control-label"
- else - else
= form.label name, title, class: "control-label" = form.label name, title, class: "control-label"
.col-sm-10 .col-sm-10
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
- elsif type == 'select' - elsif type == 'select'
= form.select name, options_for_select(choices, value ? value : default_choice), {}, { class: "form-control" } = form.select name, options_for_select(choices, value ? value : default_choice), {}, { class: "form-control" }
- elsif type == 'password' - elsif type == 'password'
= form.password_field name, autocomplete: "new-password", class: 'form-control' = form.password_field name, autocomplete: "new-password", class: "form-control"
- if help - if help
%span.help-block= help %span.help-block= help
---
title: Update password field label while editing service settings
merge_request: 11431
author:
...@@ -211,7 +211,7 @@ class Spinach::Features::ProjectServices < Spinach::FeatureSteps ...@@ -211,7 +211,7 @@ class Spinach::Features::ProjectServices < Spinach::FeatureSteps
end end
step 'I should see empty field Change Password' do step 'I should see empty field Change Password' do
expect(find_field('Change Password').value).to be_nil expect(find_field('Enter new password').value).to be_nil
end end
step 'I click JetBrains TeamCity CI service link' do step 'I click JetBrains TeamCity CI service link' do
......
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