[E2E][LanguageCenter] Skip flaky test + try to make data deterministic

This commit is contained in:
Aaro Koivukangas
2026-09-21 15:24:21 +03:00
committed by Aaro Koivukangas
parent d3b8eb6fa8
commit e0a5c872d4
2 changed files with 13 additions and 3 deletions
@@ -131,7 +131,11 @@ export const computeLanguageCenterData = async () => {
semestercode: { [Op.gte]: autumnSemester2017 },
credittypecode: 4,
},
order: [['attainment_date', 'DESC']],
order: [
['attainment_date', 'DESC NULLS LAST'],
['student_studentnumber', 'ASC'],
['course_id', 'ASC'],
], // Add a fallbacks sorting so that runs would be more deterministic
})
const enrollments = await EnrollmentModel.findAll({
@@ -142,7 +146,11 @@ export const computeLanguageCenterData = async () => {
state: { [Op.in]: ['ENROLLED', 'REJECTED'] },
// EnrollmentDateTimeThreshold need not be used here as we are not counting failed courses
},
order: [['enrollment_date_time', 'DESC']],
order: [
['enrollment_date_time', 'DESC NULLS LAST'],
['studentnumber', 'ASC'],
['course_id', 'ASC'], // Last fallback
],
})
const studyRights = await SISStudyRightModel.findAll({