Files
vms/test/system/identity/emails_test.rb
David Böhm c4b96a43e4
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
Installed authentication-zero
2024-08-17 21:18:23 +02:00

27 lines
648 B
Ruby

require "application_system_test_case"
class Identity::EmailsTest < ApplicationSystemTestCase
setup do
@user = sign_in_as(users(:lazaro_nixon))
end
test "updating the email" do
click_on "Change email address"
fill_in "New email", with: "new_email@hey.com"
fill_in "Password challenge", with: "Secret1*3*5*"
click_on "Save changes"
assert_text "Your email has been changed"
end
test "sending a verification email" do
@user.update! verified: false
click_on "Change email address"
click_on "Re-send verification email"
assert_text "We sent a verification email to your email address"
end
end