]> git.openstreetmap.org Git - rails.git/commitdiff
Add test case to ensure clicking on the registration link takes you to the right...
authorAndy Allan <git@gravitystorm.co.uk>
Mon, 29 Mar 2021 14:51:07 +0000 (15:51 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Mon, 29 Mar 2021 14:51:07 +0000 (15:51 +0100)
test/system/user_signup_test.rb [new file with mode: 0644]

diff --git a/test/system/user_signup_test.rb b/test/system/user_signup_test.rb
new file mode 100644 (file)
index 0000000..d4da014
--- /dev/null
@@ -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