LG-10464 FSM/Address Get route and controller#9377
Conversation
| RSpec.describe Idv::InPerson::AddressController do | ||
| include InPersonHelper | ||
| let(:in_person_residential_address_controller_enabled) { true } | ||
| let(:pii_from_user) do |
There was a problem hiding this comment.
Will update constants.rb to include a mock applicant that has these fields
|
I tested when flag was disabled. I am not able to get to page when I type in the non-FSM URL. I go to the FSM url, which is what I'd expect. I tested when the flag was enabled. I am able to hit the new view/controller/route. View (visiting first time only) is working as expected. Validation before submit is working and I see Puerto Rico hints on the form. New url is what I'd expect. I reviewed at my PR for this similar issue. Maybe consider adding some features tests in a new file- spec/features/idv/steps/in_person/address_spec (or maybe these go somewhere else better). I would just add when the flag is enabled. We can delete "when the flag is enabled" later and keep all of the specs. ie: When you click cancel and then start over, when you click cancel and keep going (testing flow). When you visit the new controller for the first time- what does the heading and button display? (testing text on new view- both change if it is initial visit or on edit.) I agree with Sonia's comments above about marking the FSM step as complete. I think this is pretty close. Poke me if/when you want another review. |
There was a problem hiding this comment.
The new view & controller are working as I'd expect. Thanks for adding those additional tests in this PR. I think the more tests we can add the better. I tested the FSM flow a lot (flag is disabled). I can not any place that your changes have affected it- and that is what we want at this stage.
🎫 Ticket
LG-10464
🛠 Summary of changes
Add get route and controller for residential address page.
Things to note:
same_address_as_id📜 Testing Plan
Provide a checklist of steps to confirm the changes.
no address does not match idin_person/addressin_person_proofing/addressand make sure 404 rendersconfig/application.yml.defaultupdate controller flag (in_person_residential_address_controller_enabled) to trueno address does not match idin_person_proofing/addressfind a post officechecked completeverify your informationas current step