]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/user_signup_test.rb
Merge remote-tracking branch 'upstream/pull/5234'
[rails.git] / test / system / user_signup_test.rb
index d4da01436be9c4183fd26588ab35dd94ebb7b82c..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 page.has_content? "Confirm Password"
+    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