diff --git a/iTrust/test/edu/ncsu/csc/itrust/selenium/SendRemindersTest.java b/iTrust/test/edu/ncsu/csc/itrust/selenium/SendRemindersTest.java index 45207bb641f2b465a013346a6cdb1983b49e4bbf..6dfa3c967de80820686df6ee01c8aa548772a4af 100644 --- a/iTrust/test/edu/ncsu/csc/itrust/selenium/SendRemindersTest.java +++ b/iTrust/test/edu/ncsu/csc/itrust/selenium/SendRemindersTest.java @@ -35,6 +35,15 @@ public class SendRemindersTest extends iTrustSeleniumTest{ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); Date date = new Date(); String stamp = dateFormat.format(date); + + // Check admin reminders outbox + driver.findElement(By.linkText("Reminder Message Outbox")).click(); + assertNotNull(driver.findElement(By.className("fancyTable"))); + assertTrue(driver.getPageSource().contains(stamp)); + + // Check a reminder message + driver.findElement(By.linkText("Read")).click(); + assertTrue(driver.getPageSource().contains(stamp)); // Logout admin and login as patient List<WebElement> links = driver.findElements(By.tagName("a"));