3939import org .labkey .test .WebTestHelper ;
4040import org .labkey .test .categories .External ;
4141import org .labkey .test .categories .LabModule ;
42- import org .labkey .test .categories .ONPRC ;
4342import org .labkey .test .components .CustomizeView ;
4443import org .labkey .test .components .ext4 .RadioButton ;
4544import org .labkey .test .util .APIContainerHelper ;
7776 * Contains a series of tests designed to test the UI in the laboratory module.
7877 * Also contains considerable coverage of Ext4 components and the client API
7978 */
80- @ Category ({External .class , ONPRC . class , LabModule .class })
79+ @ Category ({External .class , LabModule .class })
8180public class LabModulesTest extends BaseWebDriverTest implements AdvancedSqlTest
8281{
8382 protected LabModuleHelper _helper = new LabModuleHelper (this );
8483 protected APIContainerHelper _apiContainerHelper = new APIContainerHelper (this );
8584
8685 protected String PROJECT_NAME = "LaboratoryVerifyProject" + TRICKY_CHARACTERS_FOR_PROJECT_NAMES ;
87- private String VIRAL_LOAD_ASSAYNAME = "Viral Load Test" ;
86+ private String GENOTYPING_ASSAYNAME = "Genotyping Assay Test" ;
8887
8988 private final String DATA_SOURCE = "Source_" + replaceNonVisibleChars (getProjectName ());
9089 private final String SUBJECT_LIST = "Subject List_" + replaceNonVisibleChars (getProjectName ());
@@ -273,10 +272,8 @@ protected List<Pair<String, String>> getAssaysToCreate()
273272 assays .add (Pair .of ("Immunophenotyping" , "TruCount Test" ));
274273 assays .add (Pair .of ("ICS" , "ICS Test" ));
275274 assays .add (Pair .of ("SSP Typing" , "SSP Test" ));
276- assays .add (Pair .of ("Viral Loads" , VIRAL_LOAD_ASSAYNAME ));
277275 assays .add (Pair .of ("ELISPOT_Assay" , "ELISPOT Test" ));
278- assays .add (Pair .of ("Hormone Assay" , "Hormone Assay Test" ));
279- assays .add (Pair .of ("Genotype Assay" , "Genotyping Assay Test" ));
276+ assays .add (Pair .of ("Genotype Assay" , GENOTYPING_ASSAYNAME ));
280277 assays .add (Pair .of ("SNP Assay" , "SNP Assay Test" ));
281278
282279 return assays ;
@@ -922,8 +919,8 @@ private void dataSourcesTest() throws Exception
922919 assertElementNotPresent (LabModuleHelper .getNavPanelItem ("Users:" , IMPORT_DATA_TEXT ));
923920
924921 //verify that the demographics source has been added
925- _helper .clickNavPanelItem (VIRAL_LOAD_ASSAYNAME + ":" , "Browse All" );
926- waitForText (VIRAL_LOAD_ASSAYNAME + " Results" );
922+ _helper .clickNavPanelItem (GENOTYPING_ASSAYNAME + ":" , "Browse All" );
923+ waitForText (GENOTYPING_ASSAYNAME + " Results" );
927924 _customizeViewsHelper .openCustomizeViewPanel ();
928925 _customizeViewsHelper .addColumn (fieldKey + "/gender" );
929926 _customizeViewsHelper .applyCustomView ();
@@ -1141,9 +1138,6 @@ private void siteSettingsTest()
11411138 assertElementPresent (LabModuleHelper .getNavPanelRow ("Instruments:" ));
11421139 assertElementPresent (LabModuleHelper .getNavPanelRow ("Peptide Pools:" ));
11431140
1144- assertElementPresent (LabModuleHelper .getNavPanelRow ("Diluents:" ));
1145- assertElementPresent (LabModuleHelper .getNavPanelRow ("Roche E411 Tests:" ));
1146-
11471141 assertElementPresent (LabModuleHelper .getNavPanelRow ("Cell Populations:" ));
11481142 assertElementPresent (LabModuleHelper .getNavPanelRow ("Units:" ));
11491143
@@ -1157,10 +1151,6 @@ private void siteSettingsTest()
11571151 assertElementPresent (LabModuleHelper .getNavPanelRow ("Allowable Barcodes:" ));
11581152 assertElementPresent (LabModuleHelper .getNavPanelRow ("DNA Loci:" ));
11591153 assertElementPresent (LabModuleHelper .getNavPanelRow ("Haplotype Definitions:" ));
1160-
1161- assertElementPresent (LabModuleHelper .getNavPanelRow ("ABI7500 Detectors:" ));
1162- assertElementPresent (LabModuleHelper .getNavPanelRow ("Fluors:" ));
1163- assertElementPresent (LabModuleHelper .getNavPanelRow ("Techniques:" ));
11641154 }
11651155
11661156 private void reportsTest ()
@@ -1180,7 +1170,6 @@ private void reportsTest()
11801170 assertElementPresent (Locator .linkContainingText ("SSP Test: SSP Summary" ));
11811171 assertElementPresent (Locator .linkContainingText ("SSP Test: Results By Run" ));
11821172 assertElementPresent (Locator .linkContainingText ("ICS Test: Results By Run" ));
1183- assertElementPresent (Locator .linkContainingText (VIRAL_LOAD_ASSAYNAME + ": Viral Load Summary" ));
11841173
11851174 assertElementPresent (Locator .linkContainingText ("View All DNA Oligos" ));
11861175 assertElementPresent (Locator .linkContainingText ("View All Peptides" ));
@@ -1761,12 +1750,10 @@ private void searchPanelTest()
17611750 protected List <String > getEnabledModules ()
17621751 {
17631752 List <String > modules = new ArrayList <>();
1764- modules .add ("HormoneAssay" );
17651753 modules .add ("ELISPOT_Assay" );
17661754 modules .add ("FlowAssays" );
17671755 modules .add ("GenotypeAssays" );
17681756 modules .add ("SequenceAnalysis" );
1769- modules .add ("Viral_Load_Assay" );
17701757 return modules ;
17711758 }
17721759
@@ -1793,17 +1780,17 @@ private void defaultAssayImportMethodTest()
17931780 waitAndClickAndWait (_helper .toolIcon ("Settings" ));
17941781 waitForText ("Set Assay Defaults" );
17951782 waitAndClickAndWait (Locator .linkContainingText ("Set Assay Defaults" ));
1796- String defaultVal = "LC480 " ;
1797- _helper .waitForField (VIRAL_LOAD_ASSAYNAME );
1798- Ext4FieldRef .getForLabel (this , VIRAL_LOAD_ASSAYNAME ).setValue (defaultVal );
1783+ String defaultVal = "UC Davis STR " ;
1784+ _helper .waitForField (GENOTYPING_ASSAYNAME );
1785+ Ext4FieldRef .getForLabel (this , GENOTYPING_ASSAYNAME ).setValue (defaultVal );
17991786 waitAndClick (Ext4Helper .Locators .ext4Button ("Submit" ));
18001787
18011788 waitForElement (Ext4Helper .Locators .window ("Success" ));
18021789 waitAndClickAndWait (Ext4Helper .Locators .ext4Button ("OK" ));
18031790 waitForText ("Types of Data" );
1804- _helper .goToAssayResultImport (VIRAL_LOAD_ASSAYNAME );
1805- _helper .waitForField ("Source Material " );
1806- Ext4FieldRef .getForLabel (this , "Source Material " ).setValue ("PBMC " ); //ensure form will be dirty to trigger alert
1791+ _helper .goToAssayResultImport (GENOTYPING_ASSAYNAME , false );
1792+ _helper .waitForField ("Purpose " );
1793+ Ext4FieldRef .getForLabel (this , "Purpose " ).setValue ("Testing " ); //ensure form will be dirty to trigger alert
18071794 Boolean state = (Boolean ) Ext4FieldRef .getForBoxLabel (this , defaultVal ).getValue ();
18081795 assertTrue ("Default method not correct" , state );
18091796
0 commit comments