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
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2017-09-29 03:57:49 +0300
committerRubén Dávila <ruben@gitlab.com>2017-10-05 16:25:27 +0300
commit866ef2bb2ed601618c77d39f3462ddca9601bc44 (patch)
treee2a960d7d2bd340bbc0cb079c6e86fe13a0810d1 /spec/features/profiles
parentb27549df97151f773c6fbfac4c9dc3aa491a8b5d (diff)
Add more specs to cover subkeys scenarios
Diffstat (limited to 'spec/features/profiles')
-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