1 require "application_system_test_case"
3 class UserLogoutTest < ApplicationSystemTestCase
4 test "Sign out via link" do
8 click_on user.display_name
10 assert page.has_content? "Log In"
13 test "Sign out via fallback page" do
14 sign_in_as(create(:user))
17 assert page.has_content? "Logout from OpenStreetMap"
20 assert page.has_content? "Log In"