summaryrefslogtreecommitdiff
path: root/spec/features/profiles
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-09-02 12:55:16 -0300
committerRobert Speicher <rspeicher@gmail.com>2016-09-13 11:49:55 -0400
commit0663d72d306e17c2f116cdf9becfb06b01d83842 (patch)
treeaf48b113bf3e8057b832b354d981e989ea4a7ce7 /spec/features/profiles
parent404f438f45c2da884cf4f16239ac1fda548db09f (diff)
downloadgitlab-ce-0663d72d306e17c2f116cdf9becfb06b01d83842.tar.gz
Restore SSH Key title auto-population behavior
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/21823
Diffstat (limited to 'spec/features/profiles')
-rw-r--r--spec/features/profiles/keys_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/profiles/keys_spec.rb b/spec/features/profiles/keys_spec.rb
new file mode 100644
index 00000000000..3b20d38c520
--- /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