diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-07 09:08:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-07 09:08:16 +0300 |
commit | a95f7ad8b8331e972ce2e82247679fec7a918565 (patch) | |
tree | a76204749ad8b1822304ba89b8f3b2f6b05c13db /spec/features/users | |
parent | 66664611361dcfcbaf99cd7c6906b99bcb16becd (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/users')
-rw-r--r-- | spec/features/users/signup_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/features/users/signup_spec.rb b/spec/features/users/signup_spec.rb index d048a6636a9..6171aa3a058 100644 --- a/spec/features/users/signup_spec.rb +++ b/spec/features/users/signup_spec.rb @@ -282,7 +282,7 @@ RSpec.describe 'Signup', feature_category: :users do expect(page).to have_content("Email has already been taken") end - it 'does not redisplay the password' do + it 'redisplays all fields except password' do create(:user, email: new_user.email) visit new_user_registration_path @@ -291,6 +291,11 @@ RSpec.describe 'Signup', feature_category: :users do expect(page).to have_current_path user_registration_path, ignore_query: true expect(page.body).not_to match(/#{new_user.password}/) + + expect(find_field('First name').value).to eq(new_user.first_name) + expect(find_field('Last name').value).to eq(new_user.last_name) + expect(find_field('Username').value).to eq(new_user.username) + expect(find_field('Email').value).to eq(new_user.email) end end |