add reset password link

This commit is contained in:
Pete Matsyburka
2025-09-06 11:10:45 +03:00
parent 1245ff2cce
commit 4dc6149530
8 changed files with 35 additions and 13 deletions
+4 -1
View File
@@ -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
-1
View File
@@ -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'