X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6789fc30813990710c5fb786bf90a70867f77339..cb80bd3b966e1f780b7a1db1cf2d32716643caea:/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