Sha256: 5938f275da55a1605e6ae3e9052ada22088bb5d6a9099301d7368499a41d0868

Contents?: true

Size: 593 Bytes

Versions: 7

Compression:

Stored size: 593 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 "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

7 entries across 7 versions & 1 rubygems

Version Path
authentication-zero-2.16.5 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.16.4 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.16.3 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.16.2 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.16.1 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.16.0 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt
authentication-zero-2.15.9 lib/generators/authentication/templates/test_unit/system/identity/emails_test.rb.tt