Program: 69464
Project: 69464
Buggy source:
/** 
 * An author create a course, publish it and add a participant. It set the certificate, create one for the participant.<br> The participant logs in and look at its wonderful certificate. 
 * @param authorLoginPage
 * @param reiBrowser
 * @throws IOException
 * @throws URISyntaxException
 */
@Test @RunAsClient public void certificatesManuallyGenerated(@InitialPage LoginPage authorLoginPage,@Drone @User WebDriver reiBrowser) throws IOException, URISyntaxException {
  screenshotTestRule.setBrowsers(browser,reiBrowser);
  UserVO author=new UserRestClient(deploymentUrl).createAuthor();
  authorLoginPage.loginAs(author.getLogin(),author.getPassword());
  UserVO rei=new UserRestClient(deploymentUrl).createRandomUser("String_Node_Str");
  String courseTitle="String_Node_Str" + UUID.randomUUID();
  navBar.openAuthoringEnvironment().createCourse(courseTitle).clickToolbarBack();
  CoursePageFragment courseRuntime=CoursePageFragment.getCourse(browser).edit().createNode("String_Node_Str").autoPublish();
  MembersPage members=courseRuntime.members();
  members.addMember().searchMember(rei,true).next().next().next().finish();
  courseRuntime=members.clickToolbarBack().efficiencyStatementConfiguration().clickToolbarBack().efficiencyStatementConfiguration().enableCertificates(false).enableRecertification().save().clickToolbarBack();
  courseRuntime.assessmentTool().users().selectUser(rei).generateCertificate();
  LoginPage reiLoginPage=LoginPage.getLoginPage(reiBrowser,deploymentUrl);
  reiLoginPage.loginAs(rei.getLogin(),rei.getPassword()).resume();
  UserToolsPage reiUserTools=new UserToolsPage(reiBrowser);
  reiUserTools.openUserToolsMenu().openMyEfficiencyStatement().assertOnEfficiencyStatmentPage().assertOnCertificate(courseTitle);
}

Fixed version (ground truth):
/** 
 * An author create a course, publish it and add a participant. It set the certificate, create one for the participant.<br> The participant logs in and look at its wonderful certificate. 
 * @param authorLoginPage
 * @param reiBrowser
 * @throws IOException
 * @throws URISyntaxException
 */
@Test @RunAsClient public void certificatesManuallyGenerated(@InitialPage LoginPage authorLoginPage,@Drone @User WebDriver reiBrowser) throws IOException, URISyntaxException {
  UserVO author=new UserRestClient(deploymentUrl).createAuthor();
  authorLoginPage.loginAs(author.getLogin(),author.getPassword());
  UserVO rei=new UserRestClient(deploymentUrl).createRandomUser("String_Node_Str");
  String courseTitle="String_Node_Str" + UUID.randomUUID();
  navBar.openAuthoringEnvironment().createCourse(courseTitle).clickToolbarBack();
  CoursePageFragment courseRuntime=CoursePageFragment.getCourse(browser).edit().createNode("String_Node_Str").autoPublish();
  MembersPage members=courseRuntime.members();
  members.addMember().searchMember(rei,true).next().next().next().finish();
  courseRuntime=members.clickToolbarBack().efficiencyStatementConfiguration().clickToolbarBack().efficiencyStatementConfiguration().enableCertificates(false).enableRecertification().save().clickToolbarBack();
  courseRuntime.assessmentTool().users().selectUser(rei).generateCertificate();
  LoginPage reiLoginPage=LoginPage.getLoginPage(reiBrowser,deploymentUrl);
  reiLoginPage.loginAs(rei.getLogin(),rei.getPassword()).resume();
  UserToolsPage reiUserTools=new UserToolsPage(reiBrowser);
  reiUserTools.openUserToolsMenu().openMyEfficiencyStatement().assertOnEfficiencyStatmentPage().assertOnCertificate(courseTitle);
}