Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lewischen-aot committed Feb 20, 2025
1 parent 83a7947 commit 54f3a26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
createFakeUser,
getProviderInstanceForModule,
saveFakeSFASIndividual,
saveFakeStudent,
} from "@sims/test-utils";
import { AppAESTModule } from "../../../../app.aest.module";
import { FormNames, FormService } from "../../../../services";
Expand Down Expand Up @@ -249,6 +250,7 @@ describe("StudentAccountApplicationAESTController(e2e)-approveStudentAccountAppl
// Arrange
const user = await db.user.save(createFakeUser());
const submittedData = createFakeSubmittedData(user);
const student = await saveFakeStudent(db.dataSource, { user });

// Save the fake student account application to be later approved by the Ministry
// and create the Student Account.
Expand All @@ -264,6 +266,7 @@ describe("StudentAccountApplicationAESTController(e2e)-approveStudentAccountAppl
lastName: user.lastName,
birthDate: submittedData.dateOfBirth,
sin: submittedData.sinNumber,
student,
cslOveraward: 1000,
bcslOveraward: 2000,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ describe("AssessmentController(e2e)-verifyAssessmentCalculationOrder", () => {
lastName: student.user.lastName,
birthDate: student.birthDate,
sin: student.sinValidation.sin,
student,
},
});
// First SFAS application with the start date before the first assessment date of the current application.
Expand Down Expand Up @@ -586,6 +587,7 @@ describe("AssessmentController(e2e)-verifyAssessmentCalculationOrder", () => {
lastName: student.user.lastName,
birthDate: student.birthDate,
sin: student.sinValidation.sin,
student,
},
});
// Past SFAS application with the start date before the first assessment date of the current application and cancelled.
Expand Down Expand Up @@ -729,6 +731,7 @@ describe("AssessmentController(e2e)-verifyAssessmentCalculationOrder", () => {
lastName: student.user.lastName,
birthDate: student.birthDate,
sin: student.sinValidation.sin,
student,
},
});
// First SFAS application with the start date before the first assessment date of the current application.
Expand Down Expand Up @@ -879,6 +882,7 @@ describe("AssessmentController(e2e)-verifyAssessmentCalculationOrder", () => {
lastName: student.user.lastName,
birthDate: student.birthDate,
sin: student.sinValidation.sin,
student,
},
});

Expand Down

0 comments on commit 54f3a26

Please sign in to comment.