Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1683 - Completed application - E2E tests for application tracker #1832

Merged
merged 11 commits into from
Mar 27, 2023
Prev Previous commit
Next Next commit
PR comments
andrewsignori-aot committed Mar 24, 2023
commit 185d1c7a4c78ea790da338ea05b41b76dc387173
Original file line number Diff line number Diff line change
@@ -149,13 +149,13 @@ describe("ApplicationStudentsController(e2e)-getCompletedApplicationDetails", ()
firstDisbursement.coeStatus = COEStatus.completed;
await disbursementScheduleRepo.save(firstDisbursement);
// Create a scholastic standing and have it associated with the completed application.
// 'Student did not complete program' is the only 'scholastic standing that does not generate an assessment.
// The below record has only a relationship with the application which must be enough to
// have the scholasticStandingChangeType returned.
const scholasticStanding = createFakeStudentScholasticStanding({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

application can be passed here itself right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

submittedBy: submittedByInstitutionUser,
application,
});
// 'Student did not complete program' is the only'scholastic standing that does not generate an assessment.
// The below record has only a relationship with the application which must be enough to
// have the scholasticStandingChangeType returned.
scholasticStanding.application = application;
await studentScholasticStandingRepo.save(scholasticStanding);

const endpoint = `/students/application/${application.id}/completed`;
Original file line number Diff line number Diff line change
@@ -140,6 +140,5 @@ export async function saveFakeApplicationDisbursements(
fakeOriginalAssessment,
);
savedApplication.currentAssessment = savedOriginalAssessment;
savedApplication.applicationStatus = ApplicationStatus.Enrolment;
return applicationRepo.save(savedApplication);
}