Skip to content

Commit

Permalink
Bump plugin from 4.31 to 4.37 (#359)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Mar 9, 2022
1 parent 8cdaf73 commit 154cafd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.31</version>
<version>4.37</version>
<relativePath />
</parent>
<artifactId>junit</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/hudson/tasks/junit/JUnitResultArchiverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,15 +381,15 @@ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListen
WebClient wc = j.createWebClient();
HtmlPage page = wc.getPage(b, "testReport");

assertThat(page.asText(), not(containsString(EXPECTED)));
assertThat(page.asNormalizedText(), not(containsString(EXPECTED)));

((HtmlAnchor) page.getElementById(ID_PREFIX + "-showlink")).click();
wc.waitForBackgroundJavaScript(10000L);
assertThat(page.asText(), containsString(EXPECTED));
assertThat(page.asNormalizedText(), containsString(EXPECTED));

((HtmlAnchor) page.getElementById(ID_PREFIX + "-hidelink")).click();
wc.waitForBackgroundJavaScript(10000L);
assertThat(page.asText(), not(containsString(EXPECTED)));
assertThat(page.asNormalizedText(), not(containsString(EXPECTED)));
}

@Issue("JENKINS-26535")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ void assertStringEmptyOrNull(String msg, String str) {

void assertPaneDiffText(String msg, int expectedValue, Object paneObj) {
assertTrue( "paneObj should be an HtmlElement, it was " + paneObj.getClass(), paneObj instanceof HtmlElement );
String paneText = ((HtmlElement) paneObj).asText();
String paneText = ((HtmlElement) paneObj).asNormalizedText();
if (expectedValue==0) {
assertStringEmptyOrNull(msg, paneText);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public AbstractTestResultLink(HtmlAnchor testResultLink) {
}

public String getResultText() {
return testResultLink.getNextSibling().asText();
return testResultLink.getNextSibling().asNormalizedText();
}
public T assertNoTests() {
assertThat(getResultText(), containsString("no tests"));
Expand Down

0 comments on commit 154cafd

Please sign in to comment.