From 60444d3015e5d038499fba2c1171940fa6f2021e Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Mon, 29 Mar 2021 15:51:07 +0100 Subject: [PATCH] Add test case to ensure clicking on the registration link takes you to the right page --- test/system/user_signup_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/system/user_signup_test.rb diff --git a/test/system/user_signup_test.rb b/test/system/user_signup_test.rb new file mode 100644 index 000000000..d4da01436 --- /dev/null +++ b/test/system/user_signup_test.rb @@ -0,0 +1,11 @@ +require "application_system_test_case" + +class UserSignupTest < ApplicationSystemTestCase + test "Sign up from login page" do + visit login_path + + click_on "Register now" + + assert page.has_content? "Confirm Password" + end +end -- 2.39.5