diff options
author | Illya Klymov <xanf@xanf.me> | 2019-04-15 22:53:53 +0300 |
---|---|---|
committer | Illya Klymov <xanf@xanf.me> | 2019-04-18 05:36:08 +0300 |
commit | d34cd3e003c20842cc6ebcc85ec1276379373c4c (patch) | |
tree | f487ba2a4b59f5bfc5df1efdc7c7173003d606d8 | |
parent | ce02daea08c4cc7bc5e65e56f9b3d744a2e1faa6 (diff) | |
download | gitlab-ce-d34cd3e003c20842cc6ebcc85ec1276379373c4c.tar.gz |
Add tests for already signed in banner
-rw-r--r-- | spec/features/users/login_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/users/login_spec.rb b/spec/features/users/login_spec.rb index 9d5780d29b0..122191af146 100644 --- a/spec/features/users/login_spec.rb +++ b/spec/features/users/login_spec.rb @@ -319,6 +319,16 @@ describe 'Login' do expect(current_path).to eq root_path expect(page).not_to have_content('You are already signed in.') end + + it 'does not show already signed in message when opening sign in page after login' do + expect(authentication_metrics) + .to increment(:user_authenticated_counter) + + gitlab_sign_in(user) + visit new_user_session_path + + expect(page).not_to have_content('You are already signed in.') + end end context 'with invalid username and password' do |