diff --git a/CHANGELOG b/CHANGELOG index 4cad8707015f9b7124f2fff6a62749aa5ed5aad7..38ce9e5450bbd1869b565968cec63e45eb4bd17a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -131,6 +131,7 @@ v 8.12.0 (unreleased) v 8.11.6 (unreleased) - Fix an error where we were unable to create a CommitStatus for running state + - Restore SSH Key title auto-population behavior. !6186 v 8.11.5 - Optimize branch lookups and force a repository reload for Repository#find_branch. !6087 diff --git a/app/views/profiles/keys/index.html.haml b/app/views/profiles/keys/index.html.haml index a42b3b8eb3830cea042ab454a3d0e0c06ad826d7..931878735014e0e341c9f8448c641d5accd60cd8 100644 --- a/app/views/profiles/keys/index.html.haml +++ b/app/views/profiles/keys/index.html.haml @@ -1,4 +1,5 @@ - page_title "SSH Keys" += render 'profiles/head' .row.prepend-top-default .col-lg-3.profile-settings-sidebar diff --git a/spec/features/profiles/keys_spec.rb b/spec/features/profiles/keys_spec.rb new file mode 100644 index 0000000000000000000000000000000000000000..3b20d38c520cd603205096fcdd9f8a2ce9a8984b --- /dev/null +++ b/spec/features/profiles/keys_spec.rb @@ -0,0 +1,18 @@ +require 'rails_helper' + +describe 'Profile > SSH Keys', feature: true do + let(:user) { create(:user) } + + before do + login_as(user) + visit profile_keys_path + end + + describe 'User adds an SSH key' do + it 'auto-populates the title', js: true do + fill_in('Key', with: attributes_for(:key).fetch(:key)) + + expect(find_field('Title').value).to eq 'dummy@gitlab.com' + end + end +end