Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-09-13 19:31:37 +0300
committerRuben Davila <rdavila84@gmail.com>2016-09-14 04:53:25 +0300
commit355abf44135ec79e0c1ee95732a6865949583581 (patch)
tree8c6c082f7a98a0db9a6e6ef46093ab42a249820c /spec
parentbedae890568fd29879f90bdfc9dd27cc5f1b15f1 (diff)
Merge branch 'rs-ssh-key-title-populate' into 'master'
Restore SSH Key title auto-population behavior Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/21823 See merge request !6186
Diffstat (limited to 'spec')
-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