diff --git a/spec/features/idv/doc_auth/link_sent_step_spec.rb b/spec/features/idv/doc_auth/link_sent_step_spec.rb index f4b9d7373fc..9ed903524eb 100644 --- a/spec/features/idv/doc_auth/link_sent_step_spec.rb +++ b/spec/features/idv/doc_auth/link_sent_step_spec.rb @@ -70,6 +70,19 @@ visit current_path end + context 'user cancels flow session' do + before do + click_on t('links.cancel') + click_on t('forms.buttons.cancel') + + visit idv_doc_auth_link_sent_step + end + + it 'redirects to welcome step' do + expect(page).to have_current_path(idv_doc_auth_welcome_step) + end + end + it 'refreshes page 4x with meta refresh extending timeout by 40 min and can start over' do 3.times do expect(page).to have_css 'meta[http-equiv="refresh"]', visible: false