Skip to content

Conversation

@sh16011993
Copy link
Collaborator

@sh16011993 sh16011993 commented Jan 30, 2026

As a part of this PR, the following were completed:

  • Updated the 2026-2027 PY FT and PT forms with the spouse dependant question and the dependant relationship question
image
image
  • Updated the workflow to correctly calculate the family size in case of a dependant spouse
  • Added the following e2e tests:

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.

image

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.

image

@sh16011993 sh16011993 changed the title Feature/5501 pt ft assessment disabled spouse path #5501 - FT/PT Assessment Disabled Spouse Path Jan 30, 2026
@sh16011993 sh16011993 self-assigned this Jan 30, 2026
@sh16011993 sh16011993 added Form.io Form IO definitions changed. Camunda Worflow Involves camunda workflow changes E2E/Unit tests labels Jan 30, 2026
Copy link
Contributor

Copilot AI left a 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

@tiago-graf tiago-graf self-requested a review January 30, 2026 17:35
- tooltip updated
Copilot suggested comment update
Form update
- Review Comments
- Form update
@sonarqubecloud
Copy link

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.18% ( 4321 / 21410 )
Methods: 9.69% ( 253 / 2611 )
Lines: 24.35% ( 3710 / 15237 )
Branches: 10.05% ( 358 / 3562 )

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 75.41% ( 1055 / 1399 )
Methods: 79.31% ( 115 / 145 )
Lines: 78.79% ( 769 / 976 )
Branches: 61.51% ( 171 / 278 )

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 85.68% ( 1616 / 1886 )
Methods: 85% ( 187 / 220 )
Lines: 88.64% ( 1287 / 1452 )
Branches: 66.36% ( 142 / 214 )

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 77.2% ( 8827 / 11434 )
Methods: 76.66% ( 1041 / 1358 )
Lines: 81.24% ( 6408 / 7888 )
Branches: 62.98% ( 1378 / 2188 )

Comment on lines +27 to +29
const [dependent] = assessmentConsolidatedData.studentDataDependants;
dependent.relationship = DependantRelationship.Spouse;
assessmentConsolidatedData.studentDataDependants = [dependent];
Copy link
Collaborator

@dheepak-aot dheepak-aot Jan 31, 2026

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 },
      ),
    ];

Comment on lines +45 to +46
"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.",
Copy link
Collaborator

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.

Comment on lines +58 to +60
];
const [dependent] = assessmentConsolidatedData.studentDataDependants;
dependent.relationship = DependantRelationship.Spouse;
Copy link
Collaborator

Choose a reason for hiding this comment

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

},
);

it(
Copy link
Collaborator

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 () => {
Copy link
Collaborator

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>",
Copy link
Collaborator

@dheepak-aot dheepak-aot Jan 31, 2026

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.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also the text Yes has double quotes on left and single quote on the right.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Camunda Worflow Involves camunda workflow changes E2E/Unit tests Form.io Form IO definitions changed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants