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