test: fix HTML entity encoding assertion in metadata notes test

The test was checking for hexadecimal entity ' but templ actually outputs
the decimal entity ' for apostrophes. This commit updates the assertion to
match the actual HTML output from the templ library.
This commit is contained in:
2026-03-31 20:53:46 -04:00
parent d26174fec0
commit db4f93af34
@@ -423,8 +423,8 @@ func TestComicMetadataDisplay_ComicDetailPage(t *testing.T) {
// Check that the metadata notes section is present
assert.Contains(t, body, "Metadata Notes", "Should display metadata notes section header")
// The content is HTML-escaped by templ, so apostrophes become '
assert.Contains(t, body, "John's Comics", "Should display HTML-escaped metadata notes content")
// The content is HTML-escaped by templ, so apostrophes become '
assert.Contains(t, body, "John's Comics", "Should display HTML-escaped metadata notes content")
// Also check for a simpler substring without special characters
assert.Contains(t, body, "collection", "Should display metadata notes content")
})