Test email mode nric should be masked when nric mask toggle is on:
[x] create an email mode form
[x] ensure the form builder initially shows unmasked sample nric (S1234567A)
[x] go to the singpass tab, turn on the enable singpass auth toggle, select any one of the singpass auth methods
[x] toggle on nric masking
[x] ensure the form builder shows sample masked nric (****567A)
[x] open the form to public submission (in general settings tab)
[x] respond to the form
[x] check form response in email mailbox, verify the nric is masked
[x] turn off the nric masking
[x] make another form response
[x] check form response in email mailbox, verify nric is not masked
Test storage mode nric should be masked when nric mask toggle is on + myinfo fields are not masked despite nric masking enabled + settings auth options are correctly disabled/enabled based on form state:
[x] create a storage mode form
[x] ensure the form builder initially shows unmasked sample nric (S1234567A)
[x] go to the singpass tab, turn on the enable singpass auth toggle, select sgid-myinfo
[x] toggle on nric masking
[x] ensure the form builder shows sample masked nric (****567A)
[x] add any 2 myinfo field to form (eg, name and country)
[x] open the form to public submission (in general settings tab)
[x] respond to the form
[x] check form responses in admin panel, verify the nric is masked and the myinfo fields are not masked
[x] make form private
[x] ensure that the nric masking toggle can be turned off but radio button is disabled (due to presence of myinfo fields)
[x] turn off the nric masking
[x] make another form response
[x] check form response in admin panel, verify nric is not masked
New
#7458
#7455
#7451
#7447
#7388
#7438
#7442
#7445
b549278
10b037d
Dependencies
Dev-Dependencies
#7452
Tests
feat(admin-form): support nric masking
#7388
@g-tejas
Test email mode nric should be masked when nric mask toggle is on:
Test storage mode nric should be masked when nric mask toggle is on + myinfo fields are not masked despite nric masking enabled + settings auth options are correctly disabled/enabled based on form state:
chore: replace outdated esrv id link
#7438
helper text displays message as intended
@KenLSM