X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4a8ef3e26c7bd37cb47332f04bf0b50665c71fc3..27aa2ed591212468d118059353866af1fc776631:/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 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