Add feature spec about managing passwords (with the courtesy of kemenaran)

This commit is contained in:
simon lehericey 2019-08-14 17:26:47 +02:00
parent 149b0b5797
commit 7fbedb78fb
2 changed files with 64 additions and 0 deletions

View file

@ -78,6 +78,13 @@ module FeatureHelpers
value
end
end
def click_reset_password_link_for(email)
reset_password_email = open_email(email)
token_params = reset_password_email.body.match(/reset_password_token=[^"]+/)
visit "/users/password/edit?#{token_params}"
end
end
RSpec.configure do |config|