From e156a14d1f31bb98d2fc23c25680c698d96f268a Mon Sep 17 00:00:00 2001 From: Sonia Connolly Date: Fri, 7 Apr 2023 15:34:30 -0700 Subject: [PATCH] Link to idv_address_url from verify_info show template We no longer need to use the RedoAddressAction in the flow state machine to link from the VerifyInfo screen to the Address screen in the doc_auth flow. This is in preparation for deleting the RedoAddressAction. changelog: Internal, Verify Info step, Stop using RedoAddressAction and link directly to Address page to update address --- app/views/idv/verify_info/show.html.erb | 9 ++++----- spec/features/idv/doc_auth/verify_info_step_spec.rb | 2 +- spec/support/features/doc_auth_helper.rb | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/views/idv/verify_info/show.html.erb b/app/views/idv/verify_info/show.html.erb index 40a4bfa6c29..a0a586f3c27 100644 --- a/app/views/idv/verify_info/show.html.erb +++ b/app/views/idv/verify_info/show.html.erb @@ -82,12 +82,11 @@ locals:
- <%= button_to( - idv_doc_auth_step_url(step: :redo_address), - method: :put, - class: 'usa-button usa-button--unstyled', + <%= link_to( + t('idv.buttons.change_label'), + idv_address_url, 'aria-label': t('idv.buttons.change_address_label'), - ) { t('idv.buttons.change_label') } %> + ) %>
diff --git a/spec/features/idv/doc_auth/verify_info_step_spec.rb b/spec/features/idv/doc_auth/verify_info_step_spec.rb index 062b016a739..ad24b0a7d27 100644 --- a/spec/features/idv/doc_auth/verify_info_step_spec.rb +++ b/spec/features/idv/doc_auth/verify_info_step_spec.rb @@ -54,7 +54,7 @@ end it 'allows the user to enter in a new address and displays updated info' do - click_button t('idv.buttons.change_address_label') + click_link t('idv.buttons.change_address_label') fill_in 'idv_form_zipcode', with: '12345' fill_in 'idv_form_address2', with: 'Apt 3E' diff --git a/spec/support/features/doc_auth_helper.rb b/spec/support/features/doc_auth_helper.rb index 494c61a5e28..7931355252b 100644 --- a/spec/support/features/doc_auth_helper.rb +++ b/spec/support/features/doc_auth_helper.rb @@ -181,7 +181,7 @@ def complete_verify_step def complete_doc_auth_steps_before_address_step(expect_accessible: false) complete_doc_auth_steps_before_verify_step expect(page).to be_axe_clean.according_to :section508, :"best-practice" if expect_accessible - click_button t('idv.buttons.change_address_label') + click_link t('idv.buttons.change_address_label') end def complete_doc_auth_steps_before_link_sent_step