Skip to content

Commit

Permalink
Development: Fix e2e cypress test for exam assessment (ls1intum#4283)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhainzlschmid authored Nov 10, 2021
1 parent 16c0758 commit c11dfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/cypress/integration/exam/ExamAssessment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ describe('Exam assessment', () => {
cy.login(admin, `/course-management/${course.id}/exams/${exam.id}/student-exams`);
cy.intercept(POST, COURSE_BASE + '*/exams/*/student-exams/evaluate-quiz-exercises').as('evaluateQuizzes');
cy.contains('Evaluate quizzes').click();
if (dayjs().isBefore(examEnd)) {
if (dayjs().isBefore(resultDate)) {
cy.wait(examEnd.diff(dayjs(), 'ms'));
}
cy.login(student, '/courses/' + course.id + '/exams/' + exam.id);
Expand Down

0 comments on commit c11dfee

Please sign in to comment.