Skip to content

Commit 477b65f

Browse files
Flaky clinical tests (#646)
* Click on inputs in progress and after updating
1 parent ab293cc commit 477b65f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

nirc_ehr/test/src/org.labkey.test/tests.nirc_ehr/NIRC_EHRTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,11 @@ public void testDeathNecropsyForm() throws IOException, CommandException
884884
Window<?> submitForReview = new Window<>("Submit For Review", getDriver());
885885

886886
// Make sure to find the element in submitForReview window.
887+
waitForElement(Locator.tagWithNameContaining("input", "assignedTo"));
888+
click(Locator.tagWithNameContaining("input", "assignedTo"));
887889
WebElement assignedToElement = Locator.tagWithNameContaining("input", "assignedTo").findWhenNeeded(submitForReview);
888890
setFormElement(assignedToElement, _userHelper.getDisplayNameForEmail(NIRC_FULL_SUBMITTER_VET));
891+
click(Locator.tagWithNameContaining("input", "assignedTo"));
889892

890893
// Entering the text leaves the selection list visible, send 'Enter' to remove it.
891894
assignedToElement.sendKeys(Keys.ENTER);
@@ -961,8 +964,12 @@ public void testClinicalCasesWorkflow()
961964
Ext4FieldRef problem = _helper.getExt4FieldForFormSection("Clinical Case", "Problem Area");
962965
problem.clickTrigger();
963966
problem.setValue("Circulatory abnormality");
967+
click(Locator.textarea("openRemark"));
964968
setFormElement(Locator.textarea("openRemark"), "Clinical Case WorkFlow - Test");
969+
click(Locator.textarea("plan"));
965970
setFormElement(Locator.textarea("plan"), "Case plan");
971+
waitForElement(Locator.name("Id"));
972+
click(Locator.name("Id"));
966973
setFormElement(Locator.name("Id"), animalId);
967974
_helper.getExt4FieldForFormSection("Clinical Case", "Open Date").setValue(LocalDateTime.now().minusDays(1).format(_dateFormat));
968975
Assert.assertEquals("Performed by is incorrect ", "vet tech fs", getFormElement(Locator.name("performedby")));

0 commit comments

Comments
 (0)