Skip to content

Commit

Permalink
register students to exam only after there are exercises
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer committed Oct 13, 2024
1 parent 330a677 commit ab05c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/playwright/e2e/exam/ExamAssessment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ export async function prepareExam(course: Course, end: dayjs.Dayjs, exerciseType
gracePeriod: 10,
};
exam = await examAPIRequests.createExam(examConfig);
await examAPIRequests.registerStudentForExam(exam, studentOne);
let additionalData = {};
switch (exerciseType) {
case ExerciseType.PROGRAMMING:
Expand All @@ -347,6 +346,7 @@ export async function prepareExam(course: Course, end: dayjs.Dayjs, exerciseType
}

const exercise = await examExerciseGroupCreation.addGroupWithExercise(exam, exerciseType, additionalData);
await examAPIRequests.registerStudentForExam(exam, studentOne);
await examAPIRequests.generateMissingIndividualExams(exam);
await examAPIRequests.prepareExerciseStartForExam(exam);
exercise.additionalData = additionalData;
Expand Down

0 comments on commit ab05c2c

Please sign in to comment.