-
Notifications
You must be signed in to change notification settings - Fork 13
#5501 - FT/PT Assessment Disabled Spouse Path #5690
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
base: main
Are you sure you want to change the base?
#5501 - FT/PT Assessment Disabled Spouse Path #5690
Conversation
- Mistakenly updated the wrong year application forms. Fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements the spouse dependant path for both full-time and part-time assessments in the 2026-2027 program year. The changes enable students to identify whether their spouse/common-law partner is considered a dependant, and ensures family size calculations correctly account for dependant vs. independent spouses.
Changes:
- Added spouse dependant questions to 2026-2027 FT and PT application forms with conditional visibility
- Updated BPMN workflows to calculate family size by excluding spouse dependants from the count (spouse already counted in married status)
- Added comprehensive e2e tests covering dependant spouse, independent spouse, and non-spouse dependant scenarios
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| sources/packages/forms/src/form-definitions/sfaa2026-27-pt.json | Added spouse dependant question and relationship field to part-time form |
| sources/packages/forms/src/form-definitions/sfaa2026-27-ft.json | Added spouse dependant question and relationship field to full-time form |
| sources/packages/backend/workflow/test/models/assessment.model.ts | Added dependantRelationship field to StudentDependent interface |
| sources/packages/backend/workflow/test/2026-2027/parttime-assessment/family-count/parttime-assessment-family-size.e2e-spec.ts | Added e2e tests for part-time family size calculation scenarios |
| sources/packages/backend/workflow/test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts | Added e2e tests for full-time family size calculation scenarios |
| sources/packages/backend/workflow/src/workflow-definitions/parttime-assessment-2026-2027.bpmn | Updated part-time workflow to filter out spouse dependants from family size calculation |
| sources/packages/backend/workflow/src/workflow-definitions/load-assessment-consolidated-data.bpmn | Added dependantRelationship field to data mapping |
| sources/packages/backend/workflow/src/workflow-definitions/fulltime-assessment-2026-2027.bpmn | Updated full-time workflow to filter out spouse dependants from family size calculation |
| sources/packages/backend/libs/test-utils/src/models/common.model.ts | Added DependantRelationship enum with relationship types |
| sims.code-workspace | Added "parttime" to spell-check dictionary |
sources/packages/forms/src/form-definitions/sfaa2026-27-pt.json
Outdated
Show resolved
Hide resolved
sources/packages/forms/src/form-definitions/sfaa2026-27-ft.json
Outdated
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Outdated
Show resolved
Hide resolved
sources/packages/forms/src/form-definitions/sfaa2026-27-pt.json
Outdated
Show resolved
Hide resolved
sources/packages/forms/src/form-definitions/sfaa2026-27-ft.json
Outdated
Show resolved
Hide resolved
- tooltip updated
Copilot suggested comment update
Form update
...es/packages/backend/workflow/src/workflow-definitions/load-assessment-consolidated-data.bpmn
Outdated
Show resolved
Hide resolved
sources/packages/backend/workflow/src/workflow-definitions/fulltime-assessment-2026-2027.bpmn
Outdated
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Outdated
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Outdated
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Outdated
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Outdated
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Outdated
Show resolved
Hide resolved
.../test/2026-2027/parttime-assessment/family-count/parttime-assessment-family-size.e2e-spec.ts
Show resolved
Hide resolved
.../test/2026-2027/fulltime-assessment/family-count/fulltime-assessment-family-size.e2e-spec.ts
Outdated
Show resolved
Hide resolved
sources/packages/forms/src/form-definitions/sfaa2026-27-ft.json
Outdated
Show resolved
Hide resolved
- Review Comments
- Form update
|
| const [dependent] = assessmentConsolidatedData.studentDataDependants; | ||
| dependent.relationship = DependantRelationship.Spouse; | ||
| assessmentConsolidatedData.studentDataDependants = [dependent]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part of code can be removed now by using the factory options this way.
assessmentConsolidatedData.studentDataDependants = [
createFakeStudentDependentEligible(
DependentEligibility.Eligible18To22YearsOldDeclaredOnTaxes,
{ relationship: DependantRelationship.Spouse },
),
];| "Should correctly calculate the family size count when student relationship status is married and one dependant is provided in the application with relationship type spouse " + | ||
| " and not declared on taxes for disability.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a space on both the lines, please use the space on one of the lines only.
| ]; | ||
| const [dependent] = assessmentConsolidatedData.studentDataDependants; | ||
| dependent.relationship = DependantRelationship.Spouse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| }, | ||
| ); | ||
|
|
||
| it( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same double space here.
| } from "../../../test-utils/factories"; | ||
|
|
||
| describe(`E2E Test Workflow parttime-assessment-${PROGRAM_YEAR}-family-size.`, () => { | ||
| it("Should correctly calculate the family size count when one or more dependants provided in the application has relationship type 'spouse'.", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments from full-time e2e tests.
| "value": "" | ||
| } | ||
| ], | ||
| "content": "<strong>You have identified that your spouse/common-law partner is a disabled dependant. Please make sure you answer \"Yes' to having eligible dependants and add them in the Dependant Information section and ensure you select 'Spouse/common-law partner' as the relationship.</strong>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that this text is content and not a header. And the content is not expected to be in a bold text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.




As a part of this PR, the following were completed:
E2E Test Workflow fulltime-assessment-2026-2027-family-size.
√ Should correctly calculate the family size count when a dependant spouse is selected as the dependant relationship.
√ Should correctly calculate the family size count when an independant spouse is selected as the dependant relationship.
√ Should correctly calculate the family size count when a dependant relationship other than spouse is selected.
E2E Test Workflow parttime-assessment-2026-2027-family-size.
√ Should correctly calculate the family size count when a dependant spouse is selected as the dependant relationship.
√ Should correctly calculate the family size count when an independant spouse is selected as the dependant relationship.
√ Should correctly calculate the family size count when a dependant relationship other than spouse is selected.