diff --git a/src/e2e/java/teammates/e2e/pageobjects/InstructorFeedbackEditPage.java b/src/e2e/java/teammates/e2e/pageobjects/InstructorFeedbackEditPage.java index 5761bbe5e39..4ada9f7d5a0 100644 --- a/src/e2e/java/teammates/e2e/pageobjects/InstructorFeedbackEditPage.java +++ b/src/e2e/java/teammates/e2e/pageobjects/InstructorFeedbackEditPage.java @@ -972,8 +972,7 @@ private WebElement getQuestionForm(int questionNum) { } private FeedbackQuestionType getQuestionType(int questionNum) { - String questionDetails = getQuestionForm(questionNum).findElement(By.id("question-header")).getText(); - String questionType = questionDetails.split(" \\d+ ")[1].trim(); + String questionType = getQuestionForm(questionNum).findElement(By.id("question-type")).getText().trim(); switch (questionType) { case "Essay question": diff --git a/src/web/app/components/question-edit-form/__snapshots__/question-edit-form.component.spec.ts.snap b/src/web/app/components/question-edit-form/__snapshots__/question-edit-form.component.spec.ts.snap index 0ea572bda1e..9df6a672596 100644 --- a/src/web/app/components/question-edit-form/__snapshots__/question-edit-form.component.spec.ts.snap +++ b/src/web/app/components/question-edit-form/__snapshots__/question-edit-form.component.spec.ts.snap @@ -32,8 +32,8 @@ exports[`QuestionEditFormComponent should snap with default view 1`] = ` class="card" id="question-form-0" > -
Changing the visibility after collecting responses is not recommended.
Reason: The existing responses were submitted under the 'promise' of a certain visibility and changing the visibility later 'breaks' that promise.