]> git.openstreetmap.org Git - rails.git/blob - test/system/user_login_test.rb
fdcb7631d5d4a0f0fa96751041cc980b5fe789c0
[rails.git] / test / system / user_login_test.rb
1 require "application_system_test_case"
2
3 class UserLoginTest < ApplicationSystemTestCase
4   test "Show OpenID form when OpenID provider button is clicked" do
5     visit login_path
6
7     within_content_body do
8       assert_no_field "OpenID URL"
9       assert_no_button "Continue"
10
11       click_on "Log in with OpenID"
12
13       assert_field "OpenID URL"
14       assert_button "Continue"
15     end
16   end
17 end