Skip to content

Commit 91e9ee3

Browse files
committed
Restore debug code
1 parent 0c954cf commit 91e9ee3

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

mcc/test/src/org/labkey/test/tests/mcc/MccTest.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -57,33 +57,33 @@ public class MccTest extends BaseWebDriverTest
5757
@Test
5858
public void testMccModule() throws Exception
5959
{
60-
//doRequestFormTest();
61-
//doRequestFormTestWithFailure();
60+
doRequestFormTest();
61+
doRequestFormTestWithFailure();
6262

63-
//testInvalidId();
63+
testInvalidId();
6464

6565
testAnimalImportAndTransfer();
6666
}
6767

6868
private void testAnimalImportAndTransfer()
6969
{
7070
beginAt(getProjectName() + "/Colonies/SNPRC/project-begin.view");
71-
// waitAndClickAndWait(Locator.tagWithText("a", "Import Excel-Based Data"));
72-
// waitForElement(Locator.tagWithText("label", "Paste Data Below:"));
73-
// Ext4FieldRef.getForLabel(this, "Center/Colony Name").setValue("SNPRC");
74-
//
75-
// Ext4FieldRef.getForLabel(this, "Paste Data Below").setValue(
76-
// "animal ID\tprevious IDs\tsource\t\"DOB\n(MM/DD/YYYY)\"\tsex\tmaternal ID\tpaternal ID\t\"weight(grams)\"\t\"date of weight\n(MM/DD/YY)\"\tU24 status\tavailalble to transfer\tcurrent housing status\tinfant history\tfertility status\tmedical history\n" +
77-
// "Animal1\t\t\t7/10/2011\t0 - male\tDam1\tSire1\t382.8\t5/19/2021\t0 - not assigned to U24 breeding colony\t0 - not available for transfer\t1 - natal family group\t3 - successful rearing of offspring\t2 - successful offspring produced\t0 - naive animal\n" +
78-
// "Animal2\t\t\t6/3/2015\t1 - female\tDam2\tSire2\t361.2\t1/28/2021\t0 - not assigned to U24 breeding colony\t0 - not available for transfer\t2 - active breeding\t3 - successful rearing of offspring\t2 - successful offspring produced\t0 - naive animal"
79-
// );
80-
//
81-
// waitAndClick(Ext4Helper.Locators.ext4Button("Preview"));
82-
// waitForElement(Locator.tagWithText("td", "Animal2").withClass("dt-center"));
83-
//
84-
// waitAndClick(getButton("Submit"));
85-
// new Window.WindowFinder(getDriver()).withTitle("Success").waitFor();
86-
// waitAndClick(Ext4Helper.Locators.ext4Button("OK"));
71+
waitAndClickAndWait(Locator.tagWithText("a", "Import Excel-Based Data"));
72+
waitForElement(Locator.tagWithText("label", "Paste Data Below:"));
73+
Ext4FieldRef.getForLabel(this, "Center/Colony Name").setValue("SNPRC");
74+
75+
Ext4FieldRef.getForLabel(this, "Paste Data Below").setValue(
76+
"animal ID\tprevious IDs\tsource\t\"DOB\n(MM/DD/YYYY)\"\tsex\tmaternal ID\tpaternal ID\t\"weight(grams)\"\t\"date of weight\n(MM/DD/YY)\"\tU24 status\tavailalble to transfer\tcurrent housing status\tinfant history\tfertility status\tmedical history\n" +
77+
"Animal1\t\t\t7/10/2011\t0 - male\tDam1\tSire1\t382.8\t5/19/2021\t0 - not assigned to U24 breeding colony\t0 - not available for transfer\t1 - natal family group\t3 - successful rearing of offspring\t2 - successful offspring produced\t0 - naive animal\n" +
78+
"Animal2\t\t\t6/3/2015\t1 - female\tDam2\tSire2\t361.2\t1/28/2021\t0 - not assigned to U24 breeding colony\t0 - not available for transfer\t2 - active breeding\t3 - successful rearing of offspring\t2 - successful offspring produced\t0 - naive animal"
79+
);
80+
81+
waitAndClick(Ext4Helper.Locators.ext4Button("Preview"));
82+
waitForElement(Locator.tagWithText("td", "Animal2").withClass("dt-center"));
83+
84+
waitAndClick(getButton("Submit"));
85+
new Window.WindowFinder(getDriver()).withTitle("Success").waitFor();
86+
waitAndClick(Ext4Helper.Locators.ext4Button("OK"));
8787

8888
waitAndClickAndWait(Locator.tagWithText("a", "View Study Datasets"));
8989
waitAndClickAndWait(Locator.tagWithText("a", "Demographics"));
@@ -701,14 +701,14 @@ private void setFormValues(@Nullable Collection<String> fieldsToSkip)
701701
@Override
702702
protected void doCleanup(boolean afterTest) throws TestTimeoutException
703703
{
704-
// super.doCleanup(afterTest);
704+
super.doCleanup(afterTest);
705705
}
706706

707707
@BeforeClass
708708
public static void setupProject() throws Exception
709709
{
710-
// MccTest init = (MccTest)getCurrentTest();
711-
// init.doSetup();
710+
MccTest init = (MccTest)getCurrentTest();
711+
init.doSetup();
712712
}
713713

714714
private void doSetup() throws Exception

0 commit comments

Comments
 (0)