adds sleep time after Delayed::Worker.new.work_off

This commit is contained in:
zmagod 2017-11-23 16:57:30 +01:00
parent 331823c2fb
commit 6d56377eb0

View file

@ -38,6 +38,7 @@ Given("I click on Reset Password link in the reset password email for user {stri
fill_in 'user_email', with: email fill_in 'user_email', with: email
click_button 'Send me reset password instruction' click_button 'Send me reset password instruction'
Delayed::Worker.new.work_off Delayed::Worker.new.work_off
sleep 10
open_email(email) open_email(email)
current_email.click_link 'Change my password' current_email.click_link 'Change my password'
end end