X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d5efa4c357c1f39181f9af96024eaacbb6bd328b..8ecb2c79f7146ecbb69d08cd38954836dc6d1b4c:/test/application_system_test_case.rb?ds=inline diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index c2de02781..b170e74b1 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -21,4 +21,10 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase Settings.reload! super end + + private + + def within_sidebar(&block) + within "#sidebar_content", &block + end end