summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2017-09-28 19:57:49 -0500
committerRubén Dávila <ruben@gitlab.com>2017-10-05 08:25:27 -0500
commit866ef2bb2ed601618c77d39f3462ddca9601bc44 (patch)
treee2a960d7d2bd340bbc0cb079c6e86fe13a0810d1 /spec/features
parentb27549df97151f773c6fbfac4c9dc3aa491a8b5d (diff)
downloadgitlab-ce-866ef2bb2ed601618c77d39f3462ddca9601bc44.tar.gz
Add more specs to cover subkeys scenarios
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/profiles/gpg_keys_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/profiles/gpg_keys_spec.rb b/spec/features/profiles/gpg_keys_spec.rb
index b0f6848bc4b..59233e92f93 100644
--- a/spec/features/profiles/gpg_keys_spec.rb
+++ b/spec/features/profiles/gpg_keys_spec.rb
@@ -20,6 +20,18 @@ feature 'Profile > GPG Keys' do
expect(page).to have_content('bette.cartwright@example.net Unverified')
expect(page).to have_content(GpgHelpers::User2.fingerprint)
end
+
+ scenario 'with multiple subkeys' do
+ fill_in('Key', with: GpgHelpers::User3.public_key)
+ click_button('Add key')
+
+ expect(page).to have_content('john.doe@example.com Unverified')
+ expect(page).to have_content(GpgHelpers::User3.fingerprint)
+
+ GpgHelpers::User3.subkey_fingerprints.each do |fingerprint|
+ expect(page).to have_content(fingerprint)
+ end
+ end
end
scenario 'User sees their key' do