bcgov / bcgov/SIMS

Invalid SIN **000 000 000** not giving appropriate error message

Open
#1,775 2 comments 0 reactions 0 assignees View on GitHub
Bug Student
Dominant language
TypeScript
Stars
29
Forks
15
PR merge metrics
No merged PRs in 30d

Description

**Describe the Bug**
Invalid SIN **000 000 000** does not give the appropriate error message

**Expected Behaviour**
When the student fills the form to create the profile for the first time, on entering **000 000 000** in the text field for the SIN, the **Invalid Social Insurance Number** error should be displayed below the text input along with Red Border around the text input. Example:

![image.png](https://images.zenhubusercontent.com/63e1969c3f013ebfc60703f3/9f2538f7-6f3c-42c8-8cc7-d8b1d3b03dd1)

**Actual Behaviour**
No error is being shown when the user tabs out of the SIN text input after entering **000 000 000** and instead when the student user tries to submit the form after filling the entire profile information, the error shown in the image below shows up and the non-editable information of the form goes missing:

![image.png](https://images.zenhubusercontent.com/63e1969c3f013ebfc60703f3/bc2d6a5e-2910-40cf-8c40-66a527118fb2)

![image.png](https://images.zenhubusercontent.com/63e1969c3f013ebfc60703f3/a71f2f4d-46b1-4913-9a07-176311e8604b)

**Steps To Reproduce**
1. Login as a new Student user (who has never created his profile).
2. Fill in all the required information for the student.
3. In the Social insurance number (SIN)* field, enter **000 000 000**
4. Click on the **Create Profile** button.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.