diff options
author | Rubén Dávila <ruben@gitlab.com> | 2017-09-28 19:57:49 -0500 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2017-10-05 08:25:27 -0500 |
commit | 866ef2bb2ed601618c77d39f3462ddca9601bc44 (patch) | |
tree | e2a960d7d2bd340bbc0cb079c6e86fe13a0810d1 /spec/features/profiles | |
parent | b27549df97151f773c6fbfac4c9dc3aa491a8b5d (diff) | |
download | gitlab-ce-866ef2bb2ed601618c77d39f3462ddca9601bc44.tar.gz |
Add more specs to cover subkeys scenarios
Diffstat (limited to 'spec/features/profiles')
-rw-r--r-- | spec/features/profiles/gpg_keys_spec.rb | 12 |
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 |