]> git.openstreetmap.org Git - rails.git/blobdiff - test/application_system_test_case.rb
Limit system test asserts/interactions to sidebar
[rails.git] / test / application_system_test_case.rb
index c2de02781e63c384fe2c7943df3abb7fad3be8d6..b170e74b1aa75e1273aa02c20e418beac20e31fd 100644 (file)
@@ -21,4 +21,10 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
     Settings.reload!
     super
   end
+
+  private
+
+  def within_sidebar(&block)
+    within "#sidebar_content", &block
+  end
 end