X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721f8e00b287974d6346e3c62bb8d0d599cc7db3..aba6b5592d495ab92504b1aecd12c5901e419cc6:/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