Sha256: 8ed482899ce93d8e7830209e15b5cfa216c2af05a302a9676534364318839ea1

Contents?: true

Size: 646 Bytes

Versions: 18

Compression:

Stored size: 646 Bytes

Contents

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 "Current password", with: "Secret1*3*5*"
    fill_in "New email", with: "new_email@hey.com"
    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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
authentication-zero-2.15.8 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.7 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.6 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.5 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.4 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.3 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.2 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.1 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.0 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.14.0 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.13.0 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.12.6 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.12.5 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.12.4 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.12.3 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.12.2 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.12.1 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.12.0 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt