Skip to content
Snippets Groups Projects
Commit c44cdd02 authored by sbobo3's avatar sbobo3
Browse files

Fixed Selenium tests that were failing.

parent 9475e137
No related branches found
No related tags found
2 merge requests!7Uc20,!2UC20 Data Access Object Completed
......@@ -42,15 +42,15 @@ public class CauseOfDeathTrendsReportSeleniumTest extends iTrustSeleniumTest {
assertEquals(cause1, "Influenza");
assertEquals(code1, 487.00);
assertEquals(deaths1, 4);
assertEquals(deaths1, 5);
String cause2 = table.findElements(By.tagName("td")).get(3).getText();
double code2 = Double.parseDouble(table.findElements(By.tagName("td")).get(4).getText());
int deaths2 = Integer.parseInt(table.findElements(By.tagName("td")).get(5).getText());
assertEquals(cause2, "Diabetes with ketoacidosis");
assertEquals(code2, 250.10);
assertEquals(deaths2, 1);
assertEquals(cause2, "Tuberculosis of the lung");
assertEquals(code2, 11.40);
assertEquals(deaths2, 3);
}
public void testViewCODTrendsReports_AllPatientsOnlyMale() throws Exception {
......@@ -79,15 +79,15 @@ public class CauseOfDeathTrendsReportSeleniumTest extends iTrustSeleniumTest {
assertEquals(cause1, "Influenza");
assertEquals(code1, 487.00);
assertEquals(deaths1, 2);
assertEquals(deaths1, 3);
String cause2 = table.findElements(By.tagName("td")).get(3).getText();
double code2 = Double.parseDouble(table.findElements(By.tagName("td")).get(4).getText());
int deaths2 = Integer.parseInt(table.findElements(By.tagName("td")).get(5).getText());
assertEquals(cause2, "Diabetes with ketoacidosis");
assertEquals(code2, 250.10);
assertEquals(deaths2, 1);
assertEquals(cause2, "Malaria");
assertEquals(code2, 84.50);
assertEquals(deaths2, 2);
}
public void testViewCODTrendsReports_AllPatientsOnlyFemale() throws Exception {
......@@ -117,6 +117,14 @@ public class CauseOfDeathTrendsReportSeleniumTest extends iTrustSeleniumTest {
assertEquals(cause1, "Influenza");
assertEquals(code1, 487.00);
assertEquals(deaths1, 2);
String cause2 = table.findElements(By.tagName("td")).get(3).getText();
double code2 = Double.parseDouble(table.findElements(By.tagName("td")).get(4).getText());
int deaths2 = Integer.parseInt(table.findElements(By.tagName("td")).get(5).getText());
assertEquals(cause2, "Tuberculosis of the lung");
assertEquals(code2, 11.40);
assertEquals(deaths2, 1);
}
public void testViewCODTrendsReports_MyPatientsAllGenders() throws Exception {
......
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