Program: 62738
Project: 62738
Buggy source:
public void testCopyToAction() throws Exception {
  String feedbackSessionName="String_Node_Str";
  String courseId=newSession.courseId;
  ______TS("String_Node_Str");
  feedbackPage.fsCopyToModal.clickCopyButtonOnTable(courseId,feedbackSessionName);
  feedbackPage.fsCopyToModal.waitForModalToLoad();
  feedbackPage.fsCopyToModal.clickSubmitButton();
  feedbackPage.fsCopyToModal.waitForFormSubmissionStatusMessageVisibility();
  assertTrue(feedbackPage.fsCopyToModal.isFormSubmissionStatusMessageVisible());
  feedbackPage.fsCopyToModal.verifyStatusMessage(Const.StatusMessages.FEEDBACK_SESSION_COPY_NONESELECTED);
  feedbackPage.goToPreviousPage(InstructorFeedbacksPage.class);
  ______TS("String_Node_Str");
  feedbackPage.fsCopyToModal.clickCopyButtonOnTable(courseId,feedbackSessionName);
  feedbackPage.fsCopyToModal.waitForModalToLoad();
  feedbackPage.fsCopyToModal.fillFormWithAllCoursesSelected(feedbackSessionName);
  feedbackPage.fsCopyToModal.clickSubmitButton();
  String error=String.format(Const.StatusMessages.FEEDBACK_SESSION_COPY_ALREADYEXISTS,feedbackSessionName,courseId);
  feedbackPage.fsCopyToModal.waitForFormSubmissionStatusMessageVisibility();
  assertTrue(feedbackPage.fsCopyToModal.isFormSubmissionStatusMessageVisible());
  feedbackPage.fsCopyToModal.verifyStatusMessage(error);
  feedbackPage.goToPreviousPage(InstructorFeedbacksPage.class);
  ______TS("String_Node_Str");
  feedbackPage.fsCopyToModal.clickCopyButtonOnTable(courseId,feedbackSessionName);
  feedbackPage.fsCopyToModal.waitForModalToLoad();
  feedbackPage.fsCopyToModal.fillFormWithAllCoursesSelected("String_Node_Str");
  feedbackPage.fsCopyToModal.clickSubmitButton();
  feedbackPage.fsCopyToModal.waitForFormSubmissionStatusMessageVisibility();
  assertTrue(feedbackPage.fsCopyToModal.isFormSubmissionStatusMessageVisible());
  feedbackPage.fsCopyToModal.verifyStatusMessage("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  feedbackPage.goToPreviousPage(InstructorFeedbacksPage.class);
  ______TS("String_Node_Str");
  feedbackPage.fsCopyToModal.clickCopyButtonOnTable(courseId,feedbackSessionName);
  feedbackPage.fsCopyToModal.waitForModalToLoad();
  feedbackPage.fsCopyToModal.fillFormWithAllCoursesSelected("String_Node_Str");
  feedbackPage.fsCopyToModal.clickSubmitButton();
  feedbackPage.waitForPageToLoad();
  feedbackPage.verifyStatus(Const.StatusMessages.FEEDBACK_SESSION_COPIED);
  feedbackPage.goToPreviousPage(InstructorFeedbacksPage.class);
}

Fixed version (ground truth):
public void testCopyToAction() throws Exception {
  String feedbackSessionName="String_Node_Str";
  String courseId=newSession.courseId;
  ______TS("String_Node_Str");
  feedbackPage.fsCopyToModal.clickCopyButtonOnTable(courseId,feedbackSessionName);
  feedbackPage.fsCopyToModal.waitForModalToLoad();
  feedbackPage.fsCopyToModal.clickSubmitButton();
  feedbackPage.fsCopyToModal.waitForFormSubmissionErrorMessagePresence();
  assertTrue(feedbackPage.fsCopyToModal.isFormSubmissionStatusMessageVisible());
  feedbackPage.fsCopyToModal.verifyStatusMessage(Const.StatusMessages.FEEDBACK_SESSION_COPY_NONESELECTED);
  feedbackPage.goToPreviousPage(InstructorFeedbacksPage.class);
  ______TS("String_Node_Str");
  feedbackPage.fsCopyToModal.clickCopyButtonOnTable(courseId,feedbackSessionName);
  feedbackPage.fsCopyToModal.waitForModalToLoad();
  feedbackPage.fsCopyToModal.fillFormWithAllCoursesSelected(feedbackSessionName);
  feedbackPage.fsCopyToModal.clickSubmitButton();
  String error=String.format(Const.StatusMessages.FEEDBACK_SESSION_COPY_ALREADYEXISTS,feedbackSessionName,courseId);
  feedbackPage.fsCopyToModal.waitForFormSubmissionErrorMessagePresence();
  assertTrue(feedbackPage.fsCopyToModal.isFormSubmissionStatusMessageVisible());
  feedbackPage.fsCopyToModal.verifyStatusMessage(error);
  feedbackPage.fsCopyToModal.clickCloseButton();
  ______TS("String_Node_Str");
  feedbackPage.fsCopyToModal.clickCopyButtonOnTable(courseId,feedbackSessionName);
  feedbackPage.fsCopyToModal.waitForModalToLoad();
  feedbackPage.fsCopyToModal.fillFormWithAllCoursesSelected("String_Node_Str");
  feedbackPage.fsCopyToModal.clickSubmitButton();
  feedbackPage.fsCopyToModal.waitForFormSubmissionErrorMessagePresence();
  assertTrue(feedbackPage.fsCopyToModal.isFormSubmissionStatusMessageVisible());
  feedbackPage.fsCopyToModal.verifyStatusMessage("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  feedbackPage.fsCopyToModal.clickCloseButton();
  ______TS("String_Node_Str");
  feedbackPage.fsCopyToModal.clickCopyButtonOnTable(courseId,feedbackSessionName);
  feedbackPage.fsCopyToModal.waitForModalToLoad();
  feedbackPage.fsCopyToModal.fillFormWithAllCoursesSelected("String_Node_Str");
  feedbackPage.fsCopyToModal.clickSubmitButton();
  feedbackPage.waitForPageToLoad();
  feedbackPage.verifyStatus(Const.StatusMessages.FEEDBACK_SESSION_COPIED);
  feedbackPage.goToPreviousPage(InstructorFeedbacksPage.class);
}