Skip to content

Commit

Permalink
Update test for blood available plot refactor (#768)
Browse files Browse the repository at this point in the history
* Update what to look for when values go negative (new legend was interfering with that check)
* Update values to go negative.
  • Loading branch information
labkey-martyp authored Dec 5, 2024
1 parent 57efba9 commit 5e22be5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,11 @@ private void verifyBloodPlotValues(ParticipantViewPage page, int dataPoints, boo

if(limitShown)
{
assertElementPresent(Locator.css("rect[fill^=url]"));
assertElementVisible(Locator.css("rect[fill='url(#diag-pattern)']"));
}
else
{
assertElementNotPresent(Locator.css("rect[fill^=url]"));
assertElementNotVisible(Locator.css("rect[fill='url(#diag-pattern)']"));
}
}

Expand Down Expand Up @@ -717,7 +717,7 @@ public void testCurrentBloodReportMarmoset() throws Exception
"project", PROJECT_ID),
Maps.of("Id", aliveMarmId,
"date", DATE_FORMAT.format(DateUtils.addDays(new Date(), -3)),
"quantity", .5,
"quantity", 1.5,
"project", PROJECT_ID),
Maps.of("Id", aliveMarmId,
"date", DATE_FORMAT.format(DateUtils.addDays(new Date(), -4)),
Expand All @@ -737,7 +737,7 @@ public void testCurrentBloodReportMarmoset() throws Exception
// Verify recent blood draw values
Map<String, List<String>> recentBloodDraws = new HashMap<>();

List<String> quantities = Arrays.asList("0.5", "1.0", "0.8");
List<String> quantities = Arrays.asList("1.5", "1.0", "0.8");
recentBloodDraws.put("quantity", quantities);

List<String> dates = Arrays.asList(
Expand Down

0 comments on commit 5e22be5

Please sign in to comment.