Sha256: bf166867d8938dd6ff957657e181b7ceae399b6453491f0f5ee0f3d202ca5522

Contents?: true

Size: 606 Bytes

Versions: 60

Compression:

Stored size: 606 Bytes

Contents

require "application_system_test_case"

class SessionsTest < ApplicationSystemTestCase
  setup do
    @user = users(:lazaro_nixon)
  end

  test "visiting the index" do
    sign_in_as @user

    click_on "Devices & Sessions"
    assert_selector "h1", text: "Sessions"
  end

  test "signing in" do
    visit sign_in_url
    fill_in "Email", with: @user.email
    fill_in "Password", with: "Secret1*3*5*"
    click_on "Sign in"

    assert_text "Signed in successfully"
  end

  test "signing out" do
    sign_in_as @user

    click_on "Log out"
    assert_text "That session has been logged out"
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
authentication-zero-2.16.20 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.19 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.18 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.17 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.16 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.15 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.14 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.13 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.12 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.11 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.10 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.9 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.8 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.7 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.6 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.5 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.4 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.3 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.2 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.1 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt