Source:
<code>public void testInputValidation() { ______TS("empty question text"); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.waitForTextsForAllStatusMessagesToUserEquals(Const.StatusMessages.FEEDBACK_QUESTION_TEXTINVALID); ______TS("empty options"); feedbackEditPage.fillQuestionTextBoxForNewQuestion("Test question text"); feedbackEditPage.fillQuestionDescriptionForNewQuestion("more details"); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.waitForTextsForAllStatusMessagesToUserEquals( "Too little choices for Multiple-choice (multiple answers) question. " <START> + "Minimum number of options is: 2."); <END> ______TS("remove when 1 left"); feedbackEditPage.clickNewQuestionButton(); feedbackEditPage.selectNewQuestionType("MSQ"); feedbackEditPage.fillQuestionTextBoxForNewQuestion("Test question text"); feedbackEditPage.fillQuestionDescriptionForNewQuestion("more details"); feedbackEditPage.clickRemoveMsqOptionLinkForNewQuestion(1); assertFalse(feedbackEditPage.isElementPresent("msqOptionRow-1--1")); assertTrue(feedbackEditPage.isElementPresent("msqOptionRow-0--1")); feedbackEditPage.clickRemoveMsqOptionLinkForNewQuestion(0); assertTrue(feedbackEditPage.isElementPresent("msqOptionRow-0--1")); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.waitForTextsForAllStatusMessagesToUserEquals( "Too little choices for Multiple-choice (multiple answers) question. " + "Minimum number of options is: 2."); ______TS("select Add Other Option"); feedbackEditPage.clickNewQuestionButton(); feedbackEditPage.selectNewQuestionType("MSQ"); feedbackEditPage.fillQuestionTextBoxForNewQuestion("Msq with other option"); feedbackEditPage.fillQuestionDescriptionForNewQuestion("more details"); assertTrue(feedbackEditPage.verifyNewMsqQuestionFormIsDisplayed()); assertTrue(feedbackEditPage.isElementPresent("msqOtherOptionFlag--1")); feedbackEditPage.clickAddMsqOtherOptionCheckboxForNewQuestion(); assertTrue(feedbackEditPage.isElementSelected("msqOtherOptionFlag--1")); feedbackEditPage.clickAddQuestionButton(); }</code><technical_language>joined previous line</technical_language>

Target:
public void testInputValidation() { ______TS("empty question text"); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.waitForTextsForAllStatusMessagesToUserEquals(Const.StatusMessages.FEEDBACK_QUESTION_TEXTINVALID); ______TS("empty options"); feedbackEditPage.fillQuestionTextBoxForNewQuestion("Test question text"); feedbackEditPage.fillQuestionDescriptionForNewQuestion("more details"); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.waitForTextsForAllStatusMessagesToUserEquals( "Too little choices for Multiple-choice (multiple answers) question. Minimum number of options is: 2."); ______TS("remove when 1 left"); feedbackEditPage.clickNewQuestionButton(); feedbackEditPage.selectNewQuestionType("MSQ"); feedbackEditPage.fillQuestionTextBoxForNewQuestion("Test question text"); feedbackEditPage.fillQuestionDescriptionForNewQuestion("more details"); feedbackEditPage.clickRemoveMsqOptionLinkForNewQuestion(1); assertFalse(feedbackEditPage.isElementPresent("msqOptionRow-1--1")); assertTrue(feedbackEditPage.isElementPresent("msqOptionRow-0--1")); feedbackEditPage.clickRemoveMsqOptionLinkForNewQuestion(0); assertTrue(feedbackEditPage.isElementPresent("msqOptionRow-0--1")); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.waitForTextsForAllStatusMessagesToUserEquals( "Too little choices for Multiple-choice (multiple answers) question. Minimum number of options is: 2."); ______TS("select Add Other Option"); feedbackEditPage.clickNewQuestionButton(); feedbackEditPage.selectNewQuestionType("MSQ"); feedbackEditPage.fillQuestionTextBoxForNewQuestion("Msq with other option"); feedbackEditPage.fillQuestionDescriptionForNewQuestion("more details"); assertTrue(feedbackEditPage.verifyNewMsqQuestionFormIsDisplayed()); assertTrue(feedbackEditPage.isElementPresent("msqOtherOptionFlag--1")); feedbackEditPage.clickAddMsqOtherOptionCheckboxForNewQuestion(); assertTrue(feedbackEditPage.isElementSelected("msqOtherOptionFlag--1")); feedbackEditPage.clickAddQuestionButton(); }