Skip to content
Snippets Groups Projects
Commit d0d2d479 authored by sbobo3's avatar sbobo3 Committed by adityab3
Browse files

[tests] Fixed broken test in ViewDiagnosisStatisticsTest

parent 693fd5a4
No related branches found
No related tags found
1 merge request!26UC14
......@@ -400,14 +400,15 @@ public class ViewDiagnosisStatisticsTest extends iTrustSeleniumTest {
assertTrue(driver.getCurrentUrl().equals(ADDRESS + "auth/hcp-pha/viewDiagnosisStatistics.jsp"));
new Select(driver.findElement(By.name("viewSelect"))).selectByValue("trends");
driver.findElement(By.id("select_View")).click();
new Select(driver.findElement(By.name("icdCode"))).selectByVisibleText("487.00 - Influenza");
driver.findElement(By.name("zipCode")).clear();
driver.findElement(By.name("zipCode")).sendKeys("27606");
driver.findElement(By.name("endDate")).sendKeys("12/07/2020");
driver.findElement(By.name("endDate")).sendKeys("11/09/2020");
driver.findElement(By.id("select_diagnosis")).click();
assertTrue(driver.getCurrentUrl().equals(ADDRESS + "auth/hcp-pha/viewDiagnosisStatistics.jsp"));
assertLogged(TransactionType.DIAGNOSIS_TRENDS_VIEW, 9000000008L, 0L, "");
assertTrue(!driver.findElements(By.xpath("//div[@id='iTrustPage']/div")).isEmpty());
assertTrue(!driver.findElements(By.id("barchart")).isEmpty());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment