Source:
<code>public void testMcqWeightsFeature_shouldHaveCorrectDefaultValue() throws Exception { ______TS("MCQ: Weight cells are hidden by default"); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.selectNewQuestionTypeAndWaitForNewQuestionPanelReady("MCQ"); assertFalse(feedbackEditPage.isMcqAssignWeightCheckboxChecked(NEW_QUESTION_INDEX)); assertFalse(feedbackEditPage.getMcqWeightsColumn(NEW_QUESTION_INDEX).isDisplayed()); assertFalse(feedbackEditPage.getMcqOtherWeightBox(NEW_QUESTION_INDEX).isDisplayed()); ______TS("MCQ: Check Mcq weight default value"); feedbackEditPage.fillQuestionTextBox("MCQ weight feature", NEW_QUESTION_INDEX); feedbackEditPage.fillQuestionDescription("More details", NEW_QUESTION_INDEX); feedbackEditPage.clickMcqAssignWeightCheckboxForNewQuestion(); feedbackEditPage.clickAddMcqOtherOptionCheckboxForNewQuestion(); feedbackEditPage.fillMcqOptionForNewQuestion(0, "Choice 1"); feedbackEditPage.verifyFieldValue("mcqWeight-0--1", "0"); feedbackEditPage.fillMcqOptionForNewQuestion(1, "Choice 2"); feedbackEditPage.verifyFieldValue("mcqWeight-1--1", "0"); feedbackEditPage.verifyFieldValue("mcqOtherWeight--1", "0"); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.waitForTextsForAllStatusMessagesToUserEquals(Const.StatusMessages.FEEDBACK_QUESTION_ADDED); assertNotNull(BackDoor.getFeedbackQuestion(courseId, feedbackSessionName, 1)); feedbackEditPage.verifyHtmlMainContent("/instructorFeedbackMcqQuestionWeightAddSuccess.html"); <START> feedbackEditPage.clickDeleteQuestionLink(1); <END> feedbackEditPage.waitForConfirmationModalAndClickOk(); }</code><technical_language>delete question</technical_language>

Target:
public void testMcqWeightsFeature_shouldHaveCorrectDefaultValue() throws Exception { ______TS("MCQ: Weight cells are hidden by default"); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.selectNewQuestionTypeAndWaitForNewQuestionPanelReady("MCQ"); assertFalse(feedbackEditPage.isMcqHasAssignWeightCheckboxChecked(NEW_QUESTION_INDEX)); assertFalse(feedbackEditPage.getMcqWeightsColumn(NEW_QUESTION_INDEX).isDisplayed()); assertFalse(feedbackEditPage.getMcqOtherWeightBox(NEW_QUESTION_INDEX).isDisplayed()); ______TS("MCQ: Check Mcq weight default value"); feedbackEditPage.fillQuestionTextBox("MCQ weight feature", NEW_QUESTION_INDEX); feedbackEditPage.fillQuestionDescription("More details", NEW_QUESTION_INDEX); feedbackEditPage.clickMcqAssignWeightCheckboxForNewQuestion(); feedbackEditPage.clickAddMcqOtherOptionCheckboxForNewQuestion(); feedbackEditPage.fillMcqOptionForNewQuestion(0, "Choice 1"); feedbackEditPage.verifyFieldValue("mcqWeight-0--1", "0"); feedbackEditPage.fillMcqOptionForNewQuestion(1, "Choice 2"); feedbackEditPage.verifyFieldValue("mcqWeight-1--1", "0"); feedbackEditPage.verifyFieldValue("mcqOtherWeight--1", "0"); feedbackEditPage.clickAddQuestionButton(); feedbackEditPage.waitForTextsForAllStatusMessagesToUserEquals(Const.StatusMessages.FEEDBACK_QUESTION_ADDED); assertNotNull(BackDoor.getFeedbackQuestion(courseId, feedbackSessionName, 1)); feedbackEditPage.verifyHtmlMainContent("/instructorFeedbackMcqQuestionWeightAddSuccess.html"); feedbackEditPage.clickDeleteQuestionLink(1); feedbackEditPage.waitForConfirmationModalAndClickOk(); }