File tree Expand file tree Collapse file tree
onprc_ehr/test/src/org/labkey/test/tests/onprc_ehr Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161import java .io .File ;
6262import java .io .IOException ;
6363import java .time .LocalDateTime ;
64+ import java .time .ZoneId ;
6465import java .time .format .DateTimeFormatter ;
6566import java .util .ArrayList ;
6667import java .util .Arrays ;
@@ -1550,6 +1551,8 @@ public void testPathology()
15501551 @ Test
15511552 public void testSurgeryForm ()
15521553 {
1554+ LocalDateTime tomorrow = LocalDateTime .now ().plusDays (1 );
1555+
15531556 _helper .goToTaskForm ("Surgeries" );
15541557
15551558 Ext4GridRef proceduresGrid = _helper .getExt4GridForFormSection ("Procedures" );
@@ -1689,6 +1692,17 @@ public void testSurgeryForm()
16891692 waitForElementToDisappear (caseWindow );
16901693 waitForElement (Ext4Helper .Locators .window ("Success" ).append (Locator .tagWithText ("div" , "Surgical cases opened" )));
16911694 waitAndClick (Ext4Helper .Locators .window ("Success" ).append (Ext4Helper .Locators .ext4ButtonEnabled ("OK" )));
1695+
1696+ _ext4Helper .clickExt4Tab ("Medication/Treatment Orders" );
1697+ treatmentGrid = _helper .getExt4GridForFormSection ("Medication/Treatment Orders" );
1698+ treatmentGrid .clickTbarButton ("Add Record" );
1699+ treatmentGrid .completeEdit ();
1700+
1701+ Assert .assertEquals (tomorrow .withHour (8 ).withMinute (0 ).withSecond (0 ).withNano (0 ),
1702+ treatmentGrid .getDateFieldValue (3 , "date" ).toInstant ()
1703+ .atZone (ZoneId .systemDefault ())
1704+ .toLocalDateTime ());
1705+
16921706 _helper .discardForm ();
16931707 }
16941708
You can’t perform that action at this time.
0 commit comments