]> git.openstreetmap.org Git - rails.git/blobdiff - test/application_system_test_case.rb
Replace resent confirmation link with button
[rails.git] / test / application_system_test_case.rb
index 63c8090a83d735929ab1421fcafb0d935dc813aa..0ddb8a87ad73f91606df90af224df851c9919c06 100644 (file)
@@ -38,7 +38,11 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
     click_on "Logout", :match => :first
   end
 
     click_on "Logout", :match => :first
   end
 
-  def within_sidebar(&block)
-    within "#sidebar_content", &block
+  def within_sidebar(&)
+    within("#sidebar_content", &)
+  end
+
+  def within_content_body(&)
+    within("#content > .content-body", &)
   end
 end
   end
 end