diff options
author | Rob Watson <rob@mixlr.com> | 2018-01-01 16:55:52 +0300 |
---|---|---|
committer | Rob Watson <rob@mixlr.com> | 2018-01-01 20:45:20 +0300 |
commit | 9219ac0aad82a41a0b177853d7a4a8f8ae0d4a44 (patch) | |
tree | b07ebd9cb9539b42a0a2061c2f102dfe8c0d97e5 /spec/features/profiles | |
parent | ff077cf7dc5cfd7c6c6206d801ea3f326f7af1aa (diff) |
Add breadcrumbs to User Settings sub-views
Closes #40274
Diffstat (limited to 'spec/features/profiles')
-rw-r--r-- | spec/features/profiles/keys_spec.rb | 1 | ||||
-rw-r--r-- | spec/features/profiles/oauth_applications_spec.rb | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/profiles/keys_spec.rb b/spec/features/profiles/keys_spec.rb index 7d5ba3a7328..b04a5422fed 100644 --- a/spec/features/profiles/keys_spec.rb +++ b/spec/features/profiles/keys_spec.rb @@ -27,6 +27,7 @@ feature 'Profile > SSH Keys' do expect(page).to have_content("Title: #{attrs[:title]}") expect(page).to have_content(attrs[:key]) + expect(find('.breadcrumbs-sub-title')).to have_link(attrs[:title]) end context 'when only DSA and ECDSA keys are allowed' do diff --git a/spec/features/profiles/oauth_applications_spec.rb b/spec/features/profiles/oauth_applications_spec.rb index d1edeef8da4..7d204f89fba 100644 --- a/spec/features/profiles/oauth_applications_spec.rb +++ b/spec/features/profiles/oauth_applications_spec.rb @@ -2,12 +2,20 @@ require 'spec_helper' describe 'Profile > Applications' do let(:user) { create(:user) } + let(:application) { create(:oauth_application, owner: user) } before do sign_in(user) end describe 'User manages applications', :js do + it 'views an application' do + visit oauth_application_path(application) + + expect(page).to have_content("Application: #{application.name}") + expect(find('.breadcrumbs-sub-title')).to have_link(application.name) + end + it 'deletes an application' do create(:oauth_application, owner: user) visit oauth_applications_path |