Program: 62903
Project: 62903
Buggy source:
@Test public void testJoinConfirmation() throws Exception {
  ______TS("String_Node_Str");
  String joinActionUrl=TestProperties.inst().TEAMMATES_URL + Const.ActionURIs.INSTRUCTOR_COURSE_JOIN;
  String joinLink=Url.addParamToUrl(joinActionUrl,Const.ParamsNames.REGKEY,invalidEncryptedKey);
  browser.driver.get(joinLink);
  confirmationPage=createCorrectLoginPageType(browser.driver.getPageSource()).loginAsJoiningInstructor(TestProperties.inst().TEST_INSTRUCTOR_ACCOUNT,TestProperties.inst().TEST_INSTRUCTOR_PASSWORD);
  confirmationPage.clickCancelButton();
  ______TS("String_Node_Str");
  browser.driver.get(joinLink);
  confirmationPage=createCorrectLoginPageType(browser.driver.getPageSource()).loginAsJoiningInstructor(TestProperties.inst().TEST_INSTRUCTOR_ACCOUNT,TestProperties.inst().TEST_INSTRUCTOR_PASSWORD);
  InstructorHomePage instructorHome=confirmationPage.clickConfirmButton();
  instructorHome.verifyHtml("String_Node_Str");
  ______TS("String_Node_Str");
  String courseId=testData.courses.get("String_Node_Str").id;
  String instructorEmail=testData.instructors.get("String_Node_Str").email;
  joinLink=Url.addParamToUrl(joinActionUrl,Const.ParamsNames.REGKEY,StringHelper.encrypt(BackDoor.getKeyForInstructor(courseId,instructorEmail)));
  browser.driver.get(joinLink);
  confirmationPage=createNewPage(browser,InstructorCourseJoinConfirmationPage.class);
  instructorHome=confirmationPage.clickConfirmButton();
  instructorHome.verifyHtml("String_Node_Str");
  ______TS("String_Node_Str");
  browser.driver.get(joinLink);
  instructorHome=createNewPage(browser,InstructorHomePage.class);
  instructorHome.verifyHtml("String_Node_Str");
}

Fixed version (ground truth):
@Test public void testJoinConfirmation() throws Exception {
  ______TS("String_Node_Str");
  String joinActionUrl=TestProperties.inst().TEAMMATES_URL + Const.ActionURIs.INSTRUCTOR_COURSE_JOIN;
  String joinLink=Url.addParamToUrl(joinActionUrl,Const.ParamsNames.REGKEY,invalidEncryptedKey);
  browser.driver.get(joinLink);
  confirmationPage=createCorrectLoginPageType(browser.driver.getPageSource()).loginAsJoiningInstructor(TestProperties.inst().TEST_INSTRUCTOR_ACCOUNT,TestProperties.inst().TEST_INSTRUCTOR_PASSWORD);
  confirmationPage.clickCancelButton();
  ______TS("String_Node_Str");
  browser.driver.get(joinLink);
  confirmationPage=createCorrectLoginPageType(browser.driver.getPageSource()).loginAsJoiningInstructor(TestProperties.inst().TEST_INSTRUCTOR_ACCOUNT,TestProperties.inst().TEST_INSTRUCTOR_PASSWORD);
  InstructorHomePage instructorHome=confirmationPage.clickConfirmButton();
  instructorHome.verifyContains("String_Node_Str" + invalidEncryptedKey);
  ______TS("String_Node_Str");
  String courseId=testData.courses.get("String_Node_Str").id;
  String instructorEmail=testData.instructors.get("String_Node_Str").email;
  joinLink=Url.addParamToUrl(joinActionUrl,Const.ParamsNames.REGKEY,StringHelper.encrypt(BackDoor.getKeyForInstructor(courseId,instructorEmail)));
  browser.driver.get(joinLink);
  confirmationPage=createNewPage(browser,InstructorCourseJoinConfirmationPage.class);
  instructorHome=confirmationPage.clickConfirmButton();
  instructorHome.verifyHtml("String_Node_Str");
  ______TS("String_Node_Str");
  browser.driver.get(joinLink);
  instructorHome=createNewPage(browser,InstructorHomePage.class);
  instructorHome.verifyHtml("String_Node_Str");
}