Merge remote-tracking branch 'upstream/pull/5680'

This commit is contained in:
Tom Hughes 2025-02-15 17:35:49 +00:00
commit b0348093f8
4 changed files with 16 additions and 7 deletions

View file

@ -46,4 +46,8 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
def within_content_body(&)
within("#content > .content-body", &)
end
def within_content_heading(&)
within("#content > .content-heading", &)
end
end

View file

@ -5,7 +5,10 @@ class IssuesTest < ApplicationSystemTestCase
def test_view_issues_not_logged_in
visit issues_path
assert_content "Log in"
within_content_heading do
assert_content "Log In"
end
end
def test_view_issues_normal_user

View file

@ -79,7 +79,9 @@ class UserSignupTest < ApplicationSystemTestCase
test "Sign up from login page" do
visit login_path
click_on "Sign up"
within_content_heading do
click_on "Sign Up"
end
within_content_body do
assert_content "Confirm Password"