openstreetmap-website/test/system/user_signup_test.rb
Andy Allan d257c21740 Use assert_content instead of assert page.has_content?
The assert_content comes from capybara, and gives a much more helpful
error message if the test fails.
2022-01-06 13:16:47 +00:00

11 lines
224 B
Ruby

require "application_system_test_case"
class UserSignupTest < ApplicationSystemTestCase
test "Sign up from login page" do
visit login_path
click_on "Register now"
assert_content "Confirm Password"
end
end