]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/user_signup_test.rb
Merge remote-tracking branch 'upstream/pull/5072'
[rails.git] / test / system / user_signup_test.rb
index 7e2c6ba546c8761376dbb4cd22e994768261e38f..0e02b904f7f44a830fa5d2eba043fef1e7c70ba6 100644 (file)
@@ -4,8 +4,20 @@ class UserSignupTest < ApplicationSystemTestCase
   test "Sign up from login page" do
     visit login_path
 
-    click_on "Register now"
+    click_on "Sign up"
 
     assert_content "Confirm Password"
   end
+
+  test "Show OpenID form when OpenID provider button is clicked" do
+    visit login_path
+
+    assert_no_field "OpenID URL"
+    assert_no_button "Continue"
+
+    click_on "Log in with OpenID"
+
+    assert_field "OpenID URL"
+    assert_button "Continue"
+  end
 end