@@ -1883,11 +1883,11 @@ public void testAmountsAndUnitsWithDisplayUnit()
18831883
18841884 log ("verify error when inserting a row with an amount but no unit" );
18851885 sampleHelper .insertRow (Map .of ("Name" , "AU-ERR-1" , "StoredAmount" , "0.0" ));
1886- assertTextPresent ("No Units value provided for Amount 0.0." );
1886+ assertTextPresent ("No ' Units' value provided for Amount ' 0.0' ." );
18871887 clickButton ("Cancel" );
18881888 log ("verify error when inserting a row with a unit but no amount" );
18891889 sampleHelper .insertRow (Map .of ("Name" , "AU-ERR-2" , "Units" , "mL" ));
1890- assertTextPresent ("No Amount value provided for Units mL ." );
1890+ assertTextPresent ("No ' Amount' value provided for Units 'mL' ." );
18911891 clickButton ("Cancel" );
18921892
18931893 log ("verify error when inserting a row with incompatible units" );
@@ -1962,11 +1962,11 @@ public void testAmountsAndUnitsWithoutDisplayUnit()
19621962 log ("verify that inserting a row with an amount or unit requires both fields to be filled in" );
19631963 // insert row with amount but not unit (error expected)
19641964 sampleHelper .insertRow (Map .of ("Name" , "AU-ERR-1" , "StoredAmount" , "5.0" ));
1965- assertTextPresent ("No Units value provided for Amount 5.0." );
1965+ assertTextPresent ("No ' Units' value provided for Amount ' 5.0' ." );
19661966 clickButton ("Cancel" );
19671967 // insert row with unit but not amount (error expected)
19681968 sampleHelper .insertRow (Map .of ("Name" , "AU-ERR-2" , "Units" , "mg" ));
1969- assertTextPresent ("No Amount value provided for Units mg ." );
1969+ assertTextPresent ("No ' Amount' value provided for Units 'mg' ." );
19701970 clickButton ("Cancel" );
19711971 // insert row with both amount and unit (success)
19721972 sampleHelper .insertRow (Map .of ("Name" , "AU-SUCCESS-1" , "StoredAmount" , "5.0" , "Units" , "mg" ));
@@ -1975,11 +1975,11 @@ public void testAmountsAndUnitsWithoutDisplayUnit()
19751975 log ("verify that updating a row with an amount or unit requires both fields to be filled in" );
19761976 // update row with amount but not unit (error expected)
19771977 sampleHelper .updateRow (0 , Map .of ("Units" , "" ));
1978- assertTextPresent ("No Units value provided for Amount 5.0." );
1978+ assertTextPresent ("No ' Units' value provided for Amount ' 5.0' ." );
19791979 clickButton ("Cancel" );
19801980 // update row with unit but not amount (error expected)
19811981 sampleHelper .updateRow (0 , Map .of ("StoredAmount" , "" ));
1982- assertTextPresent ("No Amount value provided for Units mg ." );
1982+ assertTextPresent ("No ' Amount' value provided for Units 'mg' ." );
19831983 clickButton ("Cancel" );
19841984 // update row with both amount and unit (success)
19851985 sampleHelper .updateRow (0 , Map .of ("StoredAmount" , "10.0123" , "Units" , "g" ));
@@ -1988,11 +1988,11 @@ public void testAmountsAndUnitsWithoutDisplayUnit()
19881988 log ("verify that bulk import with an amount or unit requires both fields to be filled in" );
19891989 // bulk import with amount but not unit (error expected)
19901990 sampleHelper .bulkImportExpectingError (List .of (Map .of ("Name" , "AU-BULK-ERR-1" , "StoredAmount" , "0" )), SampleTypeHelper .IMPORT_OPTION );
1991- assertTextPresent ("A Units value must be provided when Amounts are provided" );
1991+ assertTextPresent ("A ' Units' value must be provided when ' Amounts' are provided" );
19921992 clickButton ("Cancel" );
19931993 // bulk import with unit but not amount (error expected)
19941994 sampleHelper .bulkImportExpectingError (List .of (Map .of ("Name" , "AU-BULK-ERR-2" , "Units" , "mL" )), SampleTypeHelper .IMPORT_OPTION );
1995- assertTextPresent ("An Amount value must be provided when Units are provided." );
1995+ assertTextPresent ("An ' Amount' value must be provided when ' Units' are provided." );
19961996 clickButton ("Cancel" );
19971997 // bulk import with both amount and unit (success expected)
19981998 sampleHelper .bulkImport (List .of (Map .of ("Name" , "AU-BULK-SUCCESS-1" , "StoredAmount" , "0" , "Units" , "L" )));
0 commit comments