Skip to content

JENKINS-73029 - Fix expanding special characters in results#72

Merged
asimell merged 1 commit intomasterfrom
escape-chars
May 17, 2024
Merged

JENKINS-73029 - Fix expanding special characters in results#72
asimell merged 1 commit intomasterfrom
escape-chars

Conversation

@asimell
Copy link
Copy Markdown
Contributor

@asimell asimell commented May 8, 2024

Test cases with special characters / or % were not expanded properly in the test results page. This PR fixes that.

@asimell asimell added the bug label May 8, 2024
@Tattoo Tattoo changed the title JENKINS-73029? - Fix expanding special characters in results JENKINS-73029 - Fix expanding special characters in results May 17, 2024
@Tattoo
Copy link
Copy Markdown
Member

Tattoo commented May 17, 2024

LGTM 💖

@asimell asimell merged commit a5c32f2 into master May 17, 2024
@asimell asimell deleted the escape-chars branch May 17, 2024 06:55
<td class="pane">
<a id="${h.escape(fullName)}-showlink" href="javascript:showStackTrace('${h.jsStringEscape(h.escape(fullName))}','${h.jsStringEscape(case.getRelativeId(it))}/summary')" class="expand"></a>
<a id="${h.escape(fullName)}-hidelink" style="display:none" href="javascript:hideStackTrace('${h.jsStringEscape(h.escape(fullName))}')" class="collapse"></a>
<a id="${escapedName}-showlink" href="#" onclick="javascript:showStackTrace('${h.jsStringEscape(escapedName)}','${h.jsStringEscape(relativeId)}/summary')" class="expand"></a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the href="#" will cause the page relocate to the top when we expand the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants