diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-17 10:07:47 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-17 10:07:47 +0000 |
commit | d670c3006e6e44901bce0d53cc4768d1d80ffa92 (patch) | |
tree | 8f65743c232e5b76850c4cc264ba15e1185815ff /spec/features/users | |
parent | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (diff) | |
download | gitlab-ce-d670c3006e6e44901bce0d53cc4768d1d80ffa92.tar.gz |
Add latest changes from gitlab-org/gitlab@14-0-stable-ee
Diffstat (limited to 'spec/features/users')
-rw-r--r-- | spec/features/users/login_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/users/login_spec.rb b/spec/features/users/login_spec.rb index 1d7099ba443..7010059a7ff 100644 --- a/spec/features/users/login_spec.rb +++ b/spec/features/users/login_spec.rb @@ -128,6 +128,20 @@ RSpec.describe 'Login' do end end end + + context 'when resending the confirmation email' do + it 'redirects to the "almost there" page' do + stub_feature_flags(soft_email_confirmation: false) + + user = create(:user) + + visit new_user_confirmation_path + fill_in 'user_email', with: user.email + click_button 'Resend' + + expect(current_path).to eq users_almost_there_path + end + end end describe 'with the ghost user' do |