@@ -1885,10 +1885,10 @@ public void testAmountsAndUnitsWithDisplayUnit()
18851885
18861886 log ("verify error when inserting a row with incompatible units" );
18871887 sampleHelper .insertRow (Map .of ("Name" , "AU-ERR-1" , "StoredAmount" , "5.0" , "Units" , "mg" ));
1888- assertTextPresent ("Units value (mg) is not compatible with the display units (mL)." );
1888+ assertTextPresent ("Units value (mg) is not compatible with the " + sampleTypeName + " display units (mL)." );
18891889 clickButton ("Cancel" );
18901890 sampleHelper .insertRow (Map .of ("Name" , "AU-ERR-1" , "StoredAmount" , "5.0" , "Units" , "unit" ));
1891- assertTextPresent ("Units value (unit) is not compatible with the display units (mL)." );
1891+ assertTextPresent ("Units value (unit) is not compatible with the " + sampleTypeName + " display units (mL)." );
18921892 clickButton ("Cancel" );
18931893
18941894 log ("verify inserting a row with compatible units succeeds and are converted" );
@@ -1901,7 +1901,7 @@ public void testAmountsAndUnitsWithDisplayUnit()
19011901
19021902 log ("verify updating a row with incompatible units fails" );
19031903 sampleHelper .updateRow (0 , Map .of ("Units" , "mg" ));
1904- assertTextPresent ("Units value (mg) is not compatible with the display units (mL)." );
1904+ assertTextPresent ("Units value (mg) is not compatible with the " + sampleTypeName + " display units (mL)." );
19051905 clickButton ("Cancel" );
19061906
19071907 log ("verify updating a row with compatible units succeeds and are converted" );
@@ -1914,7 +1914,7 @@ public void testAmountsAndUnitsWithDisplayUnit()
19141914
19151915 log ("verify bulk import with incompatible units fails" );
19161916 sampleHelper .bulkImportExpectingError (List .of (Map .of ("Name" , "AU-BULK-ERR-1" , "StoredAmount" , "0" , "Units" , "kg" )), SampleTypeHelper .IMPORT_OPTION );
1917- assertTextPresent ("Units value (kg) is not compatible with the display units (mL)." );
1917+ assertTextPresent ("Units value (kg) is not compatible with the " + sampleTypeName + " display units (mL)." );
19181918 clickButton ("Cancel" );
19191919
19201920 log ("verify bulk import with compatible units succeeds and are converted" );
@@ -1948,7 +1948,7 @@ public void testAmountsAndUnitsWithoutDisplayUnit()
19481948 CreateSampleTypePage createPage = sampleHelper
19491949 .goToCreateNewSampleType ()
19501950 .setName (sampleTypeName );
1951- assertTextNotPresent ("Amount Display Units" );
1951+ assertTextNotPresent ("Display Units" );
19521952 createPage .clickSave ();
19531953 sampleHelper .goToSampleType (sampleTypeName );
19541954
@@ -1981,11 +1981,11 @@ public void testAmountsAndUnitsWithoutDisplayUnit()
19811981 log ("verify that bulk import with an amount or unit requires both fields to be filled in" );
19821982 // bulk import with amount but not unit (error expected)
19831983 sampleHelper .bulkImportExpectingError (List .of (Map .of ("Name" , "AU-BULK-ERR-1" , "StoredAmount" , "0" )), SampleTypeHelper .IMPORT_OPTION );
1984- assertTextPresent ("When adding or updating samples, a Units value must be provided when there is a value for Amount. " );
1984+ assertTextPresent ("A Units value must be provided when Amounts are provided " );
19851985 clickButton ("Cancel" );
19861986 // bulk import with unit but not amount (error expected)
19871987 sampleHelper .bulkImportExpectingError (List .of (Map .of ("Name" , "AU-BULK-ERR-2" , "Units" , "mL" )), SampleTypeHelper .IMPORT_OPTION );
1988- assertTextPresent ("When adding or updating samples, a Amount value must be provided when there is a value for Units ." );
1988+ assertTextPresent ("An Amount value must be provided Units are provided ." );
19891989 clickButton ("Cancel" );
19901990 // bulk import with both amount and unit (success expected)
19911991 sampleHelper .bulkImport (List .of (Map .of ("Name" , "AU-BULK-SUCCESS-1" , "StoredAmount" , "0" , "Units" , "L" )));
0 commit comments