X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f0b24cdc84debeea413caffdfd8d8d8bab1ef358..9db635a992ec6464c40ac69eadeac78dff60ccf9:/test/application_system_test_case.rb 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