@@ -93,6 +93,7 @@ public class SNPRC_EHRTest extends AbstractGenericEHRTest implements SqlserverOn
9393 private static final File ANIMAL_GROUP_CATEGORIES_TSV = TestFileUtils .getSampleData ("snprc/animal_group_categories.tsv" );
9494 private static final File SPECIES_TSV = TestFileUtils .getSampleData ("snprc/species.tsv" );
9595 private static final String PROJECT_NAME = "SNPRC" ;
96+ private static final String FILEREPOSITORY = "FileRepository" ;
9697 private static final String COREFACILITIES = "Core Facilities" ;
9798 private static final String GENETICSFOLDER = "Genetics" ;
9899 private static final String FOLDER_NAME = "SNPRC" ;
@@ -130,6 +131,7 @@ public String getContainerPath()
130131 protected void createProjectAndFolders (String type )
131132 {
132133 _containerHelper .createProject (getProjectName (), type );
134+ _containerHelper .createSubfolder (getProjectName (), getProjectName (), FILEREPOSITORY , "File Sharing" , null );
133135 _containerHelper .createSubfolder (getProjectName (), getProjectName (), COREFACILITIES , "Collaboration" , null );
134136 _containerHelper .createSubfolder (getProjectName (), COREFACILITIES , GENETICSFOLDER , "Laboratory Folder" , new String []{"SNPRC_Genetics" });
135137 }
@@ -431,6 +433,24 @@ public void preTest()
431433 waitForElement (Locator .linkWithText ("Browse All" ));
432434 }
433435
436+ @ Test
437+ public void testFileRepository ()
438+ {
439+ goToAnimalHistory ();
440+
441+ SNPRCAnimalHistoryPage historyPage = new SNPRCAnimalHistoryPage (getDriver ());
442+ historyPage .searchSingleAnimal ("TEST3621582" );
443+ historyPage .clickCategoryTab ("General" );
444+ historyPage .clickReportTab ("File Repository" );
445+
446+ waitForText ("No directory found for this animal. To upload files, you must create the folders first." );
447+ waitForElement (Ext4Helper .Locators .ext4Button ("Create Folders" ));
448+ click (Ext4Helper .Locators .ext4Button ("Create Folders" ));
449+
450+ waitForText ("Anesthesia Reports" , "Cardiology Docs" , "Dental Records" , "Images" , "Lab Reports" , "Misc Docs" , "Pathology Reports" , "Procurement Docs" , "Radiology Reports" , "Surgery Sheets" );
451+
452+ }
453+
434454 @ Test
435455 public void testAnimalSearch ()
436456 {
0 commit comments