From a67ecde390d754f504bbdd58391950a811077ceb Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Sat, 17 Oct 2026 00:46:37 -0700 Subject: [PATCH] Compare a table message's filtered html as markup The filters can write the same table with or without newlines between its rows depending on which tests ran first in the process, so the exact string comparison failed under some seeds. main compares it as markup. --- test/helpers/content_filters_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/content_filters_test.rb b/test/helpers/content_filters_test.rb index 11df0237..208c87a7 100644 --- a/test/helpers/content_filters_test.rb +++ b/test/helpers/content_filters_test.rb @@ -172,7 +172,7 @@ class ContentFiltersTest < ActionView::TestCase filtered = ContentFilters::TextMessagePresentationFilters.apply(message.body.body).to_html - assert_equal body, filtered + assert_dom_equal body, filtered assert_match %r{.*.*}m, message_presentation(message) end

Name

Jason