Skip to content

Commit

Permalink
register students to exam only after there are exercises 2
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer committed Oct 13, 2024
1 parent ab05c2c commit 2060c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/playwright/e2e/exam/ExamDateVerification.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ test.describe('Exam date verification', () => {
endDate: dayjs().add(3, 'days'),
};
const exam = await examAPIRequests.createExam(examConfig);
await examAPIRequests.registerStudentForExam(exam, studentOne);
const exerciseGroup = await examAPIRequests.addExerciseGroupForExam(exam);
const exercise = await exerciseAPIRequests.createTextExercise({ exerciseGroup });
await examAPIRequests.registerStudentForExam(exam, studentOne);
await examAPIRequests.generateMissingIndividualExams(exam);
await examAPIRequests.prepareExerciseStartForExam(exam);
await login(studentOne);
Expand Down Expand Up @@ -105,9 +105,9 @@ test.describe('Exam date verification', () => {
endDate: examEnd,
};
const exam = await examAPIRequests.createExam(examConfig);
await examAPIRequests.registerStudentForExam(exam, studentOne);
const exerciseGroup = await examAPIRequests.addExerciseGroupForExam(exam);
const exercise = await exerciseAPIRequests.createTextExercise({ exerciseGroup });
await examAPIRequests.registerStudentForExam(exam, studentOne);
await examAPIRequests.generateMissingIndividualExams(exam);
await examAPIRequests.prepareExerciseStartForExam(exam);
await login(studentOne);
Expand Down

0 comments on commit 2060c0a

Please sign in to comment.