]> git.openstreetmap.org Git - rails.git/blobdiff - test/application_system_test_case.rb
Scroll to api error message
[rails.git] / test / application_system_test_case.rb
index 7931546d403028e755d1aaa6af6abb89a0e76f77..ef8f0e371feb924e35651e227fe47dbaf279f572 100644 (file)
@@ -33,6 +33,11 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
     end
   end
 
+  def sign_out
+    visit logout_path
+    click_on "Logout", :match => :first
+  end
+
   def within_sidebar(&block)
     within "#sidebar_content", &block
   end