Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,11 @@ public void testDeathNecropsyForm() throws IOException, CommandException
Window<?> submitForReview = new Window<>("Submit For Review", getDriver());

// Make sure to find the element in submitForReview window.
waitForElement(Locator.tagWithNameContaining("input", "assignedTo"));
click(Locator.tagWithNameContaining("input", "assignedTo"));
WebElement assignedToElement = Locator.tagWithNameContaining("input", "assignedTo").findWhenNeeded(submitForReview);
setFormElement(assignedToElement, _userHelper.getDisplayNameForEmail(NIRC_FULL_SUBMITTER_VET));
click(Locator.tagWithNameContaining("input", "assignedTo"));

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