bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

BUG: Full name of the province not accepted #23719

Open avni-work opened 3 weeks ago

avni-work commented 3 weeks ago

Describe the bug in current situation I was doing STRR exploratory testing when I added the address for and added British Columbia for province and was unable to submit the form. upon inspection I found the following in the network tab:

{ "details": [ { "context": [], "json_path": "$.registration.primaryContact.mailingAddress.province", "message": "'British Columbia' is too long", "relative_path": [ "registration", "primaryContact", "mailingAddress", "province" ] } ], "message": "Invalid request" }

Link bug to the User Story https://app.zenhub.com/workspaces/strr-65b2a7146835aa0cdf315b79/issues/gh/bcgov/entity/20657

Impact of this bug Describe the impact, i.e. what the impact is, and number of users impacted. anyone who doesn't shorthand the province will be impacted. Important to note that I used auto filled from a saved address so the likelihood of this impacting users is high

Chance of Occurring (high/medium/low/very low)

i would say high.

Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?

Steps to Reproduce Steps to reproduce the behavior:

  1. Go to https://strr-ui-test.web.app/create-account/
  2. start filling the form
  3. ensure that you are using the full name of province when listing address
  4. complete the rest of the form as you see
  5. try to submit
  6. inspect the page

Actual/ observed behavior/ results unable to submit and when page is inspected the network tab show { "details": [ { "context": [], "json_path": "$.registration.primaryContact.mailingAddress.province", "message": "'British Columbia' is too long", "relative_path": [ "registration", "primaryContact", "mailingAddress", "province" ] } ], "message": "Invalid request" }

Expected behavior User should be able to submit regardless of how they list the province

jdyck-fw commented 3 weeks ago
jdyck-fw commented 3 weeks ago

Discussed with Mikaela, Stefanie and Scott - Oct 15th. Save this for after December 16th.