Skip to content
Snippets Groups Projects
Commit ce69e5fd authored by htmoss2's avatar htmoss2
Browse files

Revert "Changed 'View My Appointments' link text to be 'View/Edit My Appointments'"

This reverts commit 0e735995
parent 0e735995
No related branches found
No related tags found
1 merge request!29Test fixes
......@@ -45,6 +45,29 @@ public class SendRemindersTest extends iTrustSeleniumTest{
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"));
int count = 0;
for(int i = 0; i < links.size(); i++) {
if(links.get(i).getAttribute("href").contains("logout"))
{
count = i;
break;
}
}
links.get(count).click();
driver = login("5", "pw");
// Check patient inbox
driver.findElement(By.linkText("Message Inbox")).click();
int index = 1;
WebElement baseTable = driver.findElement(By.cssSelector(".display.fTable"));
List<WebElement> tableRows = baseTable.findElements(By.tagName("tr"));
assertTrue(tableRows.get(index).getText().contains("System Reminder"));
assertTrue(tableRows.get(index).getText().contains("Reminder: upcoming appointment"));
index++;
assertTrue(tableRows.get(index).getText().contains("Reminder: upcoming appointment"));
assertTrue(tableRows.get(index).getText().contains(stamp));
}
// Test invalid number of days input for sending reminders
......
  • Author Owner

    Sorry about this, I made an error in my IDE which caused the last commit

  • Author Owner

    I ran mvn verify and got 0 errors, worked great

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