From 79efaa5b03e5ed8d52d0adcb3a5e6ad9945664c0 Mon Sep 17 00:00:00 2001 From: cnathe Date: Tue, 7 Oct 2025 09:56:59 -0500 Subject: [PATCH] test fix for sample amount display value --- src/org/labkey/test/tests/SampleTypeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/labkey/test/tests/SampleTypeTest.java b/src/org/labkey/test/tests/SampleTypeTest.java index a9143baec5..9bdc282495 100644 --- a/src/org/labkey/test/tests/SampleTypeTest.java +++ b/src/org/labkey/test/tests/SampleTypeTest.java @@ -1963,7 +1963,7 @@ public void testAmountsAndUnitsWithoutDisplayUnit() clickButton("Cancel"); // insert row with both amount and unit (success) sampleHelper.insertRow(Map.of("Name", "AU-SUCCESS-1", "StoredAmount", "5.0", "Units", "mg")); - verifySampleAmountUnitValues("AU-SUCCESS-1", "5", "mg"); + verifySampleAmountUnitValues("AU-SUCCESS-1", "5.0", "mg"); log("verify that updating a row with an amount or unit requires both fields to be filled in"); // update row with amount but not unit (error expected) @@ -1989,7 +1989,7 @@ public void testAmountsAndUnitsWithoutDisplayUnit() clickButton("Cancel"); // bulk import with both amount and unit (success expected) sampleHelper.bulkImport(List.of(Map.of("Name", "AU-BULK-SUCCESS-1", "StoredAmount", "0", "Units", "L"))); - verifySampleAmountUnitValues("AU-BULK-SUCCESS-1", "0", "L"); + verifySampleAmountUnitValues("AU-BULK-SUCCESS-1", "0.0", "L"); log("verify the bulk import with RawAmount and RawUnits are ignored"); sampleHelper.bulkImport(List.of(Map.of("Name", "AU-BULK-SUCCESS-2", "RawAmount", "1000", "RawUnits", "kg")));