]> git.openstreetmap.org Git - rails.git/blobdiff - test/application_system_test_case.rb
Use emphasis color in "Where this is?" hover state
[rails.git] / test / application_system_test_case.rb
index 7931546d403028e755d1aaa6af6abb89a0e76f77..63c8090a83d735929ab1421fcafb0d935dc813aa 100644 (file)
@@ -29,10 +29,15 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
     within "form", :text => "Email Address or Username" do
       fill_in "username", :with => user.email
       fill_in "password", :with => "test"
-      click_on "Login"
+      click_on "Log in"
     end
   end
 
+  def sign_out
+    visit logout_path
+    click_on "Logout", :match => :first
+  end
+
   def within_sidebar(&block)
     within "#sidebar_content", &block
   end