From 5e22be534f715b4e094098610d747032c3d38ecd Mon Sep 17 00:00:00 2001 From: Marty Pradere Date: Thu, 5 Dec 2024 12:03:12 -0800 Subject: [PATCH] Update test for blood available plot refactor (#768) * Update what to look for when values go negative (new legend was interfering with that check) * Update values to go negative. --- .../org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snprc_ehr/test/src/org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java b/snprc_ehr/test/src/org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java index 8545d1ca6..96193a1cd 100644 --- a/snprc_ehr/test/src/org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java +++ b/snprc_ehr/test/src/org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java @@ -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)']")); } } @@ -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)), @@ -737,7 +737,7 @@ public void testCurrentBloodReportMarmoset() throws Exception // Verify recent blood draw values Map> recentBloodDraws = new HashMap<>(); - List quantities = Arrays.asList("0.5", "1.0", "0.8"); + List quantities = Arrays.asList("1.5", "1.0", "0.8"); recentBloodDraws.put("quantity", quantities); List dates = Arrays.asList(