Repository navigation
Escape & and an edge underscore in markdown report text (tester-army/e2e#1743, #2307) - #2308
Merged
Merged
Conversation
…1743, #2307) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e22XDugYspEm2DqkyoT
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2263
What
Markdown report text (
MarkdownText.Cell) now escapes&as&and escapes an underscore at the edge of a word. Port of e2e-inc/e2e#1743 (c371f78) and #2307 (ae2a893).Value
A test title or error message holding entity text (
©,<b>) shows as written instead of rendering as a character.__proto__or_id_is no longer rendered bold or italic in the GitHub comment. Underscores between letters/digits (ERROR_CODE,snake_case) and a lone_/__token stay as written.Upstream parity
Verdict: full port of
report/markdown-text.ts(escapeInline+escapeEdgeUnderscores; C#EscapeInline,EscapeUnderscores/EscapeEdgeUnderscores). Same order: backslash escapes, underscores, then&,<,>. Doc comments updated. No public API or docs change (internal type; no docs mention it).&escaped first among entitiesUpstream tests -> local
report-markdown.test.ts,describe('renderMarkdownReport'), intests/E2E.Tests/ReportMarkdown/RenderMarkdownReportTests.cs:escapes an ampersand, so entity text in a title or a message shows as written->Escapes_an_ampersand_so_entity_text_in_a_title_or_a_message_shows_as_writtenescapes an underscore at the edge of a word, ...->Escapes_an_underscore_at_the_edge_of_a_word_so_a_title_or_a_message_is_not_bold_or_italickeeps an entity from decoding into a mention or an issue link, ...->Keeps_an_entity_from_decoding_into_a_mention_or_an_issue_link_and_leaves_an_ampersand_inside_a_code_span_aloneNot ported
Nothing. Real-model tests not run: report formatting only, no agent change.
E2E.TestsReportMarkdown + Traces: 156 passed (net10.0).Note: upstream's word-char check works on UTF-16 units, so a non-BMP letter beside an underscore gets a needless backslash; kept as upstream.
Generated by Claude Code