Skip to content

Commit c8d0617

Browse files
committed
Merge 19.3.0 into develop
2 parents d77d492 + a15e649 commit c8d0617

File tree

2 files changed

+12
-25
lines changed

2 files changed

+12
-25
lines changed

LDK/test/src/org/labkey/test/tests/external/labModules/LabModulesTest.java

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.labkey.test.WebTestHelper;
4040
import org.labkey.test.categories.External;
4141
import org.labkey.test.categories.LabModule;
42-
import org.labkey.test.categories.ONPRC;
4342
import org.labkey.test.components.CustomizeView;
4443
import org.labkey.test.components.ext4.RadioButton;
4544
import org.labkey.test.util.APIContainerHelper;
@@ -77,14 +76,14 @@
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})
8180
public 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

LDK/test/src/org/labkey/test/util/external/labModules/LabModuleHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void defineAssay(String provider, String label)
6363
_test.goToProjectHome();
6464

6565
_test.goToManageAssays();
66-
new UIAssayHelper(_test).createAssayWithDefaults(provider, label);
66+
new UIAssayHelper(_test).createAssayDesignWithDefaults(provider, label);
6767
}
6868

6969
public static Locator getNavPanelItem(String label, @Nullable String itemText)

0 commit comments

Comments
 (0)