]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/user_signup_test.rb
Merge remote-tracking branch 'upstream/pull/4977'
[rails.git] / test / system / user_signup_test.rb
index 0835df741779eb05d306ae670639d0ea163d5e1d..0e02b904f7f44a830fa5d2eba043fef1e7c70ba6 100644 (file)
@@ -8,4 +8,16 @@ class UserSignupTest < ApplicationSystemTestCase
 
     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