Change feedback order
This commit is contained in:
parent
c121895d3b
commit
7c6d448268
|
|
@ -43,8 +43,8 @@ const stepLabels = [
|
||||||
t("feedback.instructorRespectLabel"),
|
t("feedback.instructorRespectLabel"),
|
||||||
t("feedback.instructorOpenFeedbackLabel"),
|
t("feedback.instructorOpenFeedbackLabel"),
|
||||||
t("feedback.recommendLabel"),
|
t("feedback.recommendLabel"),
|
||||||
t("feedback.courseNegativeFeedbackLabel"),
|
|
||||||
t("feedback.coursePositiveFeedbackLabel"),
|
t("feedback.coursePositiveFeedbackLabel"),
|
||||||
|
t("feedback.courseNegativeFeedbackLabel"),
|
||||||
t("general.submission"),
|
t("general.submission"),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -94,8 +94,8 @@ const feedbackData: FeedbackData = reactive({
|
||||||
instructor_respect: null,
|
instructor_respect: null,
|
||||||
instructor_open_feedback: "",
|
instructor_open_feedback: "",
|
||||||
would_recommend: null,
|
would_recommend: null,
|
||||||
course_negative_feedback: "",
|
|
||||||
course_positive_feedback: "",
|
course_positive_feedback: "",
|
||||||
|
course_negative_feedback: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const questionData = [
|
const questionData = [
|
||||||
|
|
@ -139,11 +139,11 @@ const questionData = [
|
||||||
component: ItRadioGroup,
|
component: ItRadioGroup,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
modelKey: "course_negative_feedback",
|
modelKey: "course_positive_feedback",
|
||||||
component: ItTextarea,
|
component: ItTextarea,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
modelKey: "course_positive_feedback",
|
modelKey: "course_negative_feedback",
|
||||||
component: ItTextarea,
|
component: ItTextarea,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ describe("feedbackStudent.cy.js", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("can open feedback page", () => {
|
it("can open feedback page", () => {
|
||||||
cy.testLearningContentTitle("Wie zufrieden bist du?");
|
cy.testLearningContentTitle("Kursfeedback");
|
||||||
cy.testLearningContentSubtitle("Feedback");
|
cy.testLearningContentSubtitle("Feedback");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -101,8 +101,8 @@ describe("feedbackStudent.cy.js", () => {
|
||||||
// step 9
|
// step 9
|
||||||
cy.url().should("include", "step=9");
|
cy.url().should("include", "step=9");
|
||||||
cy.get('[data-cy="next-step"]').should("be.disabled");
|
cy.get('[data-cy="next-step"]').should("be.disabled");
|
||||||
cy.get('[data-cy="it-textarea-course_negative_feedback"]').type(
|
cy.get('[data-cy="it-textarea-course_positive_feedback"]').type(
|
||||||
"Ich bin unzufrieden mit einigen Sachen."
|
"Ich bin zufrieden mit den meisten Dingen."
|
||||||
);
|
);
|
||||||
cy.wait(200);
|
cy.wait(200);
|
||||||
cy.learningContentMultiLayoutNextStep();
|
cy.learningContentMultiLayoutNextStep();
|
||||||
|
|
@ -111,8 +111,8 @@ describe("feedbackStudent.cy.js", () => {
|
||||||
// step 10
|
// step 10
|
||||||
cy.url().should("include", "step=10");
|
cy.url().should("include", "step=10");
|
||||||
cy.get('[data-cy="next-step"]').should("be.disabled");
|
cy.get('[data-cy="next-step"]').should("be.disabled");
|
||||||
cy.get('[data-cy="it-textarea-course_positive_feedback"]').type(
|
cy.get('[data-cy="it-textarea-course_negative_feedback"]').type(
|
||||||
"Ich bin zufrieden mit den meisten Dingen."
|
"Ich bin unzufrieden mit einigen Sachen."
|
||||||
);
|
);
|
||||||
cy.wait(200);
|
cy.wait(200);
|
||||||
cy.learningContentMultiLayoutNextStep();
|
cy.learningContentMultiLayoutNextStep();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue