X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721f8e00b287974d6346e3c62bb8d0d599cc7db3..fcfb7d4af1e721a59b25aabd2aa0d707657cc80c:/test/application_system_test_case.rb diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index d2c3d5196..0ddb8a87a 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -41,4 +41,8 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase def within_sidebar(&) within("#sidebar_content", &) end + + def within_content_body(&) + within("#content > .content-body", &) + end end