Sha256: 02c6aa32fb310224e08c8afce46868b5c77154e2f776f3f96fbda2a85d71533c

Contents?: true

Size: 784 Bytes

Versions: 38

Compression:

Stored size: 784 Bytes

Contents

require "application_system_test_case"

class Identity::PasswordResetsTest < ApplicationSystemTestCase
  setup do
    @user = users(:lazaro_nixon)
    @sid = @user.password_reset_tokens.create.signed_id(expires_in: 20.minutes)
  end

  test "sending a password reset email" do
    visit sign_in_url
    click_on "Forgot your password?"

    fill_in "Email", with: @user.email
    click_on "Send password reset email"

    assert_text "Check your email for reset instructions"
  end

  test "updating password" do
    visit edit_identity_password_reset_url(sid: @sid)

    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 was reset successfully. Please sign in"
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
authentication-zero-2.16.36 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.35 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.34 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.33 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.32 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.31 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.30 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.29 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.28 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.27 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.26 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.25 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.24 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.23 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.22 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.21 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.20 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.19 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.18 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt
authentication-zero-2.16.17 lib/generators/authentication/templates/test_unit/system/identity/password_resets_test.rb.tt