mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
improve user email validation
This commit is contained in:
1 parent
8b9678a434
commit
fa0733f480
4 files changed
+37
No files matched your search
@@ -33,6 +33,14 @@ RSpec.describe 'Profile Settings' do
|
||||
expect(user.last_name).to eq('Beckham')
|
||||
expect(user.email).to eq('david.beckham@example.com')
|
||||
end
|
||||
|
||||
it 'does not update if email is invalid' do
|
||||
fill_in 'Email', with: 'devid+test@example'
|
||||
|
||||
all(:button, 'Update')[0].click
|
||||
|
||||
expect(page).to have_content('Email is invalid')
|
||||
end
|
||||
end
|
||||
|
||||
context 'when changes password' do
|
||||
|
||||
Reference in new issue
Block a user