Installed authentication-zero
This commit is contained in:
18
test/system/passwords_test.rb
Normal file
18
test/system/passwords_test.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require "application_system_test_case"
|
||||
|
||||
class PasswordsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@user = sign_in_as(users(:lazaro_nixon))
|
||||
end
|
||||
|
||||
test "updating the password" do
|
||||
click_on "Change password"
|
||||
|
||||
fill_in "Password challenge", with: "Secret1*3*5*"
|
||||
fill_in "New password", with: "Secret6*4*2*"
|
||||
fill_in "Confirm new password", with: "Secret6*4*2*"
|
||||
click_on "Save changes"
|
||||
|
||||
assert_text "Your password has been changed"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user