|
36 | 36 | import org.labkey.test.pages.ehr.AnimalHistoryPage; |
37 | 37 | import org.labkey.test.util.AdvancedSqlTest; |
38 | 38 | import org.labkey.test.util.ApiPermissionsHelper; |
| 39 | +import org.labkey.test.util.Ext4Helper; |
39 | 40 | import org.labkey.test.util.LogMethod; |
40 | 41 | import org.labkey.test.util.LoggedParam; |
| 42 | +import org.labkey.test.util.PasswordUtil; |
41 | 43 | import org.labkey.test.util.PermissionsHelper; |
42 | 44 | import org.labkey.test.util.ehr.EHRClientAPIHelper; |
43 | 45 | import org.labkey.test.util.ehr.EHRTestHelper; |
@@ -1056,6 +1058,20 @@ public enum EHRQCState |
1056 | 1058 | } |
1057 | 1059 | } |
1058 | 1060 |
|
| 1061 | + protected void setupNotificationService() |
| 1062 | + { |
| 1063 | + //set general settings |
| 1064 | + beginAt(WebTestHelper.buildURL("ldk", getContainerPath(),"notificationAdmin")); |
| 1065 | + _helper.waitForCmp("field[fieldLabel='Notification User']"); |
| 1066 | + Ext4FieldRef.getForLabel(this, "Notification User").setValue(PasswordUtil.getUsername()); |
| 1067 | + Ext4FieldRef.getForLabel(this, "Reply Email").setValue("fakeEmail@fakeDomain.test"); |
| 1068 | + Ext4CmpRef btn = _ext4Helper.queryOne("button[text='Save']", Ext4CmpRef.class); |
| 1069 | + btn.waitForEnabled(); |
| 1070 | + waitAndClick(Ext4Helper.Locators.ext4Button("Save")); |
| 1071 | + waitForElement(Ext4Helper.Locators.window("Success")); |
| 1072 | + waitAndClickAndWait(Ext4Helper.Locators.ext4Button("OK")); |
| 1073 | + } |
| 1074 | + |
1059 | 1075 | /** |
1060 | 1076 | * @deprecated Use {@link AnimalHistoryPage#searchSingleAnimal(String)} or {@link AnimalHistoryPage#selectMultiAnimalSearch()} (String)} |
1061 | 1077 | * or a PRC specific subclass |
|
0 commit comments