Add within_content_body system test helper

This commit is contained in:
Anton Khorev 2024-12-29 03:25:44 +03:00
parent 99af52b478
commit c883f02161
2 changed files with 14 additions and 6 deletions

View file

@ -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