Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions spec/features/idv/doc_auth/link_sent_step_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down