Skip to content

#3622 - Rough Reshape of FT Assessment and DMN #3772

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

Merged
merged 16 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe(`E2E Test Workflow assessment gateway on original assessment for ${PROG
);
});

it("Should check for both parents incomes when the student is dependant and parents have SIN.", async () => {
it.skip("Should check for both parents incomes when the student is dependant and parents have SIN.", async () => {
// Arrange
const currentAssessmentId = assessmentId++;
const parent1SupportingUserId = supportingUserId++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-BCAG
expect(calculatedAssessment.variables.awardEligibilityBCAG).toBe(
true,
);
expect(
calculatedAssessment.variables.federalAwardNetBCAGAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetBCAGAmount,
).toBeGreaterThan(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-BGPD
);
// Assert
expect(calculatedAssessment.variables.awardEligibilityBGPD).toBe(true);
expect(
calculatedAssessment.variables.federalAwardNetBGPDAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetBGPDAmount,
).toBeGreaterThan(0);
).toBe(0);
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGD
expect(
calculatedAssessment.variables.federalAwardNetCSGDAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetCSGDAmount,
).toBeGreaterThan(0);
});

it("Should determine CSGD as not eligible when financial need is at least $1 and total family income is above the threshold and there is at least 1 eligible dependent.", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGF
expect(
calculatedAssessment.variables.federalAwardNetCSGFAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetCSGFAmount,
).toBeGreaterThan(0);
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGP
// When the CSGP is eligible its amount will always be 4000. The same value is expected for
// provincial and federal grants.
expect(calculatedAssessment.variables.federalAwardNetCSGPAmount).toBe(4000);
expect(calculatedAssessment.variables.provincialAwardNetCSGPAmount).toBe(
4000,
);
expect(calculatedAssessment.variables.awardEligibilityCSGP).toBe(true);
});

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-SBSD
);
// Assert
expect(calculatedAssessment.variables.awardEligibilitySBSD).toBe(true);
expect(
calculatedAssessment.variables.federalAwardNetSBSDAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetSBSDAmount,
).toBeGreaterThan(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}.`, () => {
assessmentConsolidatedData.offeringActualTuitionCosts +
assessmentConsolidatedData.offeringMandatoryFees,
childcareCost: 0,
livingAllowance: 1672,
totalAssessedCost: 27672,
livingAllowance: 26752,
totalAssessedCost: 50752,
totalFamilyIncome: 40000,
totalFederalAward: 7654.615630769231,
totalFederalAward: 5600,
otherAllowableCost: 0,
transportationCost: 0,
transportationCost: null,
secondResidenceCost: 0,
totalAssessmentNeed: 55049.19807692308,
booksAndSuppliesCost: 5000,
totalProvincialAward: 11037.417692307692,
booksAndSuppliesCost: 3000,
totalProvincialAward: 1760,
alimonyOrChildSupport: 0,
federalAssessmentNeed: 26000,
federalAssessmentNeed: 50535.653846153844,
exceptionalEducationCost:
assessmentConsolidatedData.offeringExceptionalExpenses,
provincialAssessmentNeed: 27593.544230769232,
provincialAssessmentNeed: 50673.54423076923,
parentAssessedContribution: null,
partnerAssessedContribution: null,
studentTotalFederalContribution: 216.34615384615384,
Expand Down Expand Up @@ -97,9 +97,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}.`, () => {
expect(
calculatedAssessment.variables.calculatedDataTotalSecondResidence,
).toBe(expectedAssessmentData.secondResidenceCost);
expect(calculatedAssessment.variables.caclulatedDataTotalAssessedNeed).toBe(
expectedAssessmentData.totalAssessmentNeed,
);
expect(calculatedAssessment.variables.calculatedDataTotalBookCost).toBe(
expectedAssessmentData.booksAndSuppliesCost,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe(`E2E Test Workflow assessment gateway on original assessment for ${PROG
);
});

it("Should check for both parents incomes when the student is dependant and parents have SIN.", async () => {
it.skip("Should check for both parents incomes when the student is dependant and parents have SIN.", async () => {
// Arrange
const currentAssessmentId = assessmentId++;
const parent1SupportingUserId = supportingUserId++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-BCAG
expect(calculatedAssessment.variables.awardEligibilityBCAG).toBe(
true,
);
expect(
calculatedAssessment.variables.federalAwardNetBCAGAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetBCAGAmount,
).toBeGreaterThan(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-BGPD
);
// Assert
expect(calculatedAssessment.variables.awardEligibilityBGPD).toBe(true);
expect(
calculatedAssessment.variables.federalAwardNetBGPDAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetBGPDAmount,
).toBeGreaterThan(0);
).toBe(0);
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGD
expect(
calculatedAssessment.variables.federalAwardNetCSGDAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetCSGDAmount,
).toBeGreaterThan(0);
});

it("Should determine CSGD as not eligible when financial need is at least $1 and total family income is above the threshold and there is at least 1 eligible dependent.", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGF
expect(
calculatedAssessment.variables.federalAwardNetCSGFAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetCSGFAmount,
).toBeGreaterThan(0);
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGP
// When the CSGP is eligible its amount will always be 4000. The same value is expected for
// provincial and federal grants.
expect(calculatedAssessment.variables.federalAwardNetCSGPAmount).toBe(4000);
expect(calculatedAssessment.variables.provincialAwardNetCSGPAmount).toBe(
4000,
);
expect(calculatedAssessment.variables.awardEligibilityCSGP).toBe(true);
});

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-SBSD
);
// Assert
expect(calculatedAssessment.variables.awardEligibilitySBSD).toBe(true);
expect(
calculatedAssessment.variables.federalAwardNetSBSDAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetSBSDAmount,
).toBeGreaterThan(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}.`, () => {
assessmentConsolidatedData.offeringActualTuitionCosts +
assessmentConsolidatedData.offeringMandatoryFees,
childcareCost: 0,
livingAllowance: 1672,
totalAssessedCost: 27672,
livingAllowance: 26752,
totalAssessedCost: 50752,
totalFamilyIncome: 40000,
totalFederalAward: 7654.615630769231,
totalFederalAward: 3360,
otherAllowableCost: 0,
transportationCost: 0,
transportationCost: null,
secondResidenceCost: 0,
totalAssessmentNeed: 55049.19807692308,
booksAndSuppliesCost: 5000,
totalProvincialAward: 11037.417692307692,
booksAndSuppliesCost: 3000,
totalProvincialAward: 1760,
alimonyOrChildSupport: 0,
federalAssessmentNeed: 26000,
federalAssessmentNeed: 50535.653846153844,
exceptionalEducationCost:
assessmentConsolidatedData.offeringExceptionalExpenses,
provincialAssessmentNeed: 27593.544230769232,
provincialAssessmentNeed: 50673.54423076923,
parentAssessedContribution: null,
partnerAssessedContribution: null,
studentTotalFederalContribution: 216.34615384615384,
Expand Down Expand Up @@ -80,9 +80,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}.`, () => {
expect(
calculatedAssessment.variables.calculatedDataTotalSecondResidence,
).toBe(expectedAssessmentData.secondResidenceCost);
expect(calculatedAssessment.variables.caclulatedDataTotalAssessedNeed).toBe(
expectedAssessmentData.totalAssessmentNeed,
);
expect(calculatedAssessment.variables.calculatedDataTotalBookCost).toBe(
expectedAssessmentData.booksAndSuppliesCost,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe(`E2E Test Workflow assessment gateway on original assessment for ${PROG
);
});

it("Should check for both parents incomes when the student is dependant and parents have SIN.", async () => {
it.skip("Should check for both parents incomes when the student is dependant and parents have SIN.", async () => {
// Arrange
const currentAssessmentId = assessmentId++;
const parent1SupportingUserId = supportingUserId++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-BCAG
expect(calculatedAssessment.variables.awardEligibilityBCAG).toBe(
true,
);
expect(
calculatedAssessment.variables.federalAwardNetBCAGAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetBCAGAmount,
).toBeGreaterThan(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-BGPD
);
// Assert
expect(calculatedAssessment.variables.awardEligibilityBGPD).toBe(true);
expect(
calculatedAssessment.variables.federalAwardNetBGPDAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetBGPDAmount,
).toBeGreaterThan(0);
).toBe(0);
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGD
expect(
calculatedAssessment.variables.federalAwardNetCSGDAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetCSGDAmount,
).toBeGreaterThan(0);
});

it("Should determine CSGD as not eligible when financial need is at least $1 and total family income is above the threshold and there is at least 1 eligible dependent.", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGF
ProgramLengthOptions,
).filter((type) => !EXPECTED_PROGRAM_LENGTH.includes(type));

describe(
describe.only(
"Should determine CSGF as eligible when programCredentialType and programLength are the expected ones " +
"and financial need is at least $1 and total family income is below the threshold.",
() => {
Expand Down Expand Up @@ -72,9 +72,6 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGF
expect(
calculatedAssessment.variables.federalAwardNetCSGFAmount,
).toBeGreaterThan(0);
expect(
calculatedAssessment.variables.provincialAwardNetCSGFAmount,
).toBeGreaterThan(0);
});
}
}
Expand Down
Loading