1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- package org .labkey .test .tests ;
16+ package org .labkey .test .tests . hdrl ;
1717
1818import org .junit .Assert ;
1919import org .junit .Before ;
5050import static org .junit .Assert .assertTrue ;
5151import static org .labkey .test .util .PermissionsHelper .READER_ROLE ;
5252
53- @ Category ({Git .class })
53+ @ Category ({Git .class }) // Requires dataintegration module
5454@ BaseWebDriverTest .ClassTimeout (minutes = 8 )
5555public class HDRLTest extends BaseWebDriverTest implements PostgresOnlyTest
5656{
@@ -212,15 +212,15 @@ public void testRetrievalOfResultsAndArchiving() throws Exception
212212 specimen1 .put ("SampleIntegrity" , "Hemolyzed" );
213213 specimen1 .put ("TestResult" , "HIV Negative" );
214214 specimen1 .put ("CustomerCode" , "5B" );
215- specimen1 .put ("RequestStatus " , "Completed" );
215+ specimen1 .put ("RequestStatusId " , "Completed" );
216216 specimen1 .put ("ModifiedResultFlag" , "F" );
217217
218218 Map <String , String > specimen2 = new HashMap <>();
219219
220220 specimen2 .put ("RequestId" , requestId );
221221 specimen2 .put ("SpecimenId" , specimenIds .get (1 ));
222222 specimen2 .put ("Received" , "2015-06-01 00:00" );
223- specimen2 .put ("RequestStatus " , "Exception" );
223+ specimen2 .put ("RequestStatusId " , "Exception" );
224224 specimen2 .put ("ModifiedResultFlag" , "F" );
225225
226226 List <Map <String , String >> specimens = new ArrayList <>();
@@ -392,10 +392,10 @@ public void testFileUploadAndSubmit()
392392
393393 log ("edit an existing request" );
394394 goToProjectHome ();
395- click (Locator .linkContainingText ("View test requests" ));
395+ clickAndWait (Locator .linkContainingText ("View test requests" ));
396396
397397 DataRegionTable drt = new DataRegionTable ("query" , this );
398- int idx = drt .getRowIndex ("ShippingCarrier " , "FedEx" );
398+ int idx = drt .getRowIndex ("ShippingCarrierId " , "FedEx" );
399399 assertNotEquals (-1 , idx );
400400 clickAndWait (drt .link (idx , 0 ));
401401 log ("submitting an existing request" );
@@ -404,7 +404,7 @@ public void testFileUploadAndSubmit()
404404 clickButton (SUBMIT_BUTTON_TEXT );
405405
406406 drt = new DataRegionTable ("query" , this );
407- idx = drt .getRowIndex ("ShippingCarrier " , "FedEx" );
407+ idx = drt .getRowIndex ("ShippingCarrierId " , "FedEx" );
408408 assertNotEquals (-1 , idx );
409409 Assert .assertFalse (drt .getDataAsText (idx , "Submitted By" ).trim ().isEmpty ()); // "submitted by" field should be filled in
410410 Assert .assertFalse (drt .getDataAsText (idx , "Submitted" ).trim ().isEmpty ()); // submitted date should be filled in
@@ -423,7 +423,7 @@ public void testFileUploadAndSubmit()
423423 goToProjectHome ();
424424 clickAndWait (Locator .linkContainingText ("View test requests" ));
425425 drt = new DataRegionTable ("query" , this );
426- idx = drt .getRowIndex ("ShippingCarrier " , "FedEx" );
426+ idx = drt .getRowIndex ("ShippingCarrierId " , "FedEx" );
427427 assertNotEquals (-1 , idx );
428428 log ("ensure submitted requests are still editable by admins" );
429429 assertEquals ("VIEW" , drt .getDataAsText (idx , 0 ));
@@ -526,7 +526,7 @@ public void testDataDeletion()
526526 getDriver ().close ();
527527 switchToMainWindow ();
528528 goToProjectHome ();
529- click (Locator .linkWithText ("View test requests" ));
529+ clickAndWait (Locator .linkWithText ("View test requests" ));
530530 DataRegionTable drt = new DataRegionTable ("query" , this );
531531 int idx = drt .getRowIndex ("ShippingNumber" , "testRetrievalOfResults" );
532532 assertNotEquals (-1 , idx );
@@ -641,9 +641,9 @@ protected void setupFolder()
641641 protected void setTimeWindow ()
642642 {
643643 goToAdminConsole ();
644- click (Locator .linkWithText ("HDRL Sensitive Data" ));
644+ clickAndWait (Locator .linkWithText ("HDRL Sensitive Data" ));
645645 setFormElement (Locator .name ("timeWindowInDays" ), "0" );
646- click (Locator .linkWithSpan ("Save" ));
646+ clickAndWait (Locator .linkWithSpan ("Save" ));
647647 }
648648
649649 @ Override
0 commit comments