23 lines
476 B
Ruby
23 lines
476 B
Ruby
require "application_system_test_case"
|
|
|
|
class UserSignupTest < ApplicationSystemTestCase
|
|
test "Sign up from login page" do
|
|
visit login_path
|
|
|
|
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
|