]> git.openstreetmap.org Git - rails.git/blob - test/system/user_signup_test.rb
Merge remote-tracking branch 'upstream/pull/5408'
[rails.git] / test / system / user_signup_test.rb
1 require "application_system_test_case"
2
3 class UserSignupTest < ApplicationSystemTestCase
4   test "Sign up from login page" do
5     visit login_path
6
7     click_on "Sign up"
8
9     assert_content "Confirm Password"
10   end
11
12   test "Show OpenID form when OpenID provider button is clicked" do
13     visit login_path
14
15     assert_no_field "OpenID URL"
16     assert_no_button "Continue"
17
18     click_on "Log in with OpenID"
19
20     assert_field "OpenID URL"
21     assert_button "Continue"
22   end
23 end