add reset password link
This commit is contained in:
@@ -5,6 +5,9 @@ RSpec.describe 'Profile Settings' do
|
||||
|
||||
before do
|
||||
sign_in(user)
|
||||
|
||||
allow(Accounts).to receive(:can_send_emails?).and_return(true)
|
||||
|
||||
visit settings_profile_index_path
|
||||
end
|
||||
|
||||
@@ -79,7 +82,7 @@ RSpec.describe 'Profile Settings' do
|
||||
find('label', text: 'Click here').click
|
||||
end
|
||||
|
||||
expect(page).to have_content('You will receive an email with password reset instructions in a few minutes.')
|
||||
expect(page).to have_content('An email with password reset instructions has been sent.')
|
||||
|
||||
email = ActionMailer::Base.deliveries.last
|
||||
reset_password_url = email.body
|
||||
|
||||
@@ -115,7 +115,6 @@ RSpec.describe 'Team Settings' do
|
||||
fill_in 'First name', with: 'Adam'
|
||||
fill_in 'Last name', with: 'Meier'
|
||||
fill_in 'Email', with: 'adam.meier@example.com'
|
||||
fill_in 'Password', with: 'new_password'
|
||||
|
||||
expect do
|
||||
click_button 'Submit'
|
||||
|
||||
Reference in New Issue
Block a user