diff options
Diffstat (limited to 'spec/features/profiles/user_visits_profile_authentication_log_spec.rb')
-rw-r--r-- | spec/features/profiles/user_visits_profile_authentication_log_spec.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/features/profiles/user_visits_profile_authentication_log_spec.rb b/spec/features/profiles/user_visits_profile_authentication_log_spec.rb new file mode 100644 index 00000000000..0f419c3c2c0 --- /dev/null +++ b/spec/features/profiles/user_visits_profile_authentication_log_spec.rb @@ -0,0 +1,30 @@ +require 'spec_helper' + +describe 'User visits the authentication log' do + let(:user) { create(:user) } + + context 'when user signed in' do + before do + sign_in(user) + end + + it 'shows correct menu item' do + visit(audit_log_profile_path) + + expect(page).to have_active_navigation('Authentication log') + end + end + + context 'when user has activity' do + before do + create(:closed_issue_event, author: user) + gitlab_sign_in(user) + end + + it 'shows user activity' do + visit(audit_log_profile_path) + + expect(page).to have_content 'Signed in with standard authentication' + end + end +end |