<p></p>
<p><b>@AntonKhorev</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6318#discussion_r2273910522">test/helpers/changesets_helper_test.rb</a>:</p>
<pre style='color:#555'>> @@ -32,7 +32,7 @@ def test_changeset_details
     changeset_details_dom = Rails::Dom::Testing.html_document_fragment.parse "<div>#{changeset_details(changeset)}</div>"
     assert_dom changeset_details_dom, ":root", :text => /^Closed .* by #{changeset.user.display_name}$/ do
       assert_dom "> time", :count => 1 do
-        assert_dom "> @title", "Created: Mon, 01 Jan 2007 00:00:00 +0000\nClosed: Tue, 02 Jan 2007 00:00:00 +0000"
+        assert_dom "> @title", "Created: Mon, 01 Jan 2007 00:00:00 +0000 Closed: Tue, 02 Jan 2007 00:00:00 +0000"
</pre>
<p dir="auto">Don't we want to test for newline here?</p>
⬇️ Suggested change
<pre style="color: #555">-        assert_dom "> @title", "Created: Mon, 01 Jan 2007 00:00:00 +0000 Closed: Tue, 02 Jan 2007 00:00:00 +0000"
+        assert_dom "> @title", :html => "Created: Mon, 01 Jan 2007 00:00:00 +0000\nClosed: Tue, 02 Jan 2007 00:00:00 +0000"
</pre>

<p dir="auto">This works in both versions of rails-dom-testing.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6318#pullrequestreview-3116661519">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLK7IMT5VCD2PS2Z5O33NNOKTAVCNFSM6AAAAACDXIK6KGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTCMJWGY3DCNJRHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6318/review/3116661519</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6318#pullrequestreview-3116661519",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6318#pullrequestreview-3116661519",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>