@@ -283,7 +283,8 @@ private void doTestContainerTabConversion()
283283 goToProjectHome ();
284284 _containerHelper .createSubfolder (getProjectName (), COLLAB_FOLDER , "Collaboration" );
285285 _containerHelper .createSubfolder (COLLABFOLDER_PATH , STUDY_FOLDER_TAB_NAME , "Study" );
286- _containerHelper .enableModule ("Specimen" );
286+ if (_studyHelper .isSpecimenModulePresent ())
287+ _containerHelper .enableModule ("Specimen" );
287288 _containerHelper .createSubfolder (COLLABFOLDER_PATH , ASSAY_FOLDER_TAB_NAME , "Assay" );
288289 clickFolder (COLLAB_FOLDER );
289290 clickFolder (STUDY_FOLDER_TAB_NAME );
@@ -317,8 +318,11 @@ private void doTestContainerTabConversion()
317318 clickAndWait (Locator .linkWithText (STUDY_FOLDER_TAB_LABEL ));
318319 assertTextPresent ("Study Overview" );
319320 studyContainerTab = PortalTab .finder (getDriver ()).withTabText (STUDY_FOLDER_TAB_LABEL ).find ();
320- studyContainerTab .goToTabContainer ("Specimen Data" );
321- assertTextPresent ("Vial Search" , "Import Specimens" );
321+ if (_studyHelper .isSpecimenModulePresent ())
322+ {
323+ studyContainerTab .goToTabContainer ("Specimen Data" );
324+ assertTextPresent ("Vial Search" , "Import Specimens" );
325+ }
322326 clickAndWait (Locator .linkWithText (ASSAY_FOLDER_TAB_LABEL ));
323327 assertTextPresent ("Assay List" , EXTRA_ASSAY_WEBPART );
324328
@@ -343,8 +347,11 @@ private void doTestContainerTabConversion()
343347 assertTextPresent (STUDY_FOLDER_TAB_LABEL , ASSAY_FOLDER_TAB_LABEL );
344348 clickAndWait (Locator .linkWithText (STUDY_FOLDER_TAB_LABEL ));
345349 assertTextPresent ("Study Overview" );
346- PortalTab .find (STUDY_FOLDER_TAB_LABEL , getDriver ()).goToTabContainer ("Specimen Data" );
347- assertTextPresent ("Vial Search" , "Import Specimens" );
350+ if (_studyHelper .isSpecimenModulePresent ())
351+ {
352+ PortalTab .find (STUDY_FOLDER_TAB_LABEL , getDriver ()).goToTabContainer ("Specimen Data" );
353+ assertTextPresent ("Vial Search" , "Import Specimens" );
354+ }
348355 PortalTab .find (ASSAY_FOLDER_TAB_LABEL , getDriver ()).activate ();
349356 assertTextPresent ("Assay List" , EXTRA_ASSAY_WEBPART );
350357
0 commit comments