Skip to content

Commit

Permalink
Check the card and not the card-body in TestResultPublishingTest (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raúl Arabaolaza Barquin authored Sep 23, 2022
1 parent 12286da commit 8d9ae33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public void testHistoryPageOpenJunit() throws IOException, SAXException {

HtmlPage historyPage = wc.getPage(proj.getBuildByNumber(7),"/testReport/history/");
rule.assertGoodStatus(historyPage);
HtmlElement historyCard = (HtmlElement) historyPage.getByXPath( "//div[@class='card-body ']").get(0);
HtmlElement historyCard = (HtmlElement) historyPage.getByXPath( "//div[@class='card ']").get(0);
assertThat(historyCard.getTextContent(), containsString("History"));
DomElement wholeTable = historyPage.getElementById("testresult");
assertNotNull("table with id 'testresult' exists", wholeTable);
Expand Down

0 comments on commit 8d9ae33

Please sign in to comment.