Skip to content

Commit

Permalink
Caught up with doc capture changes. (#11229)
Browse files Browse the repository at this point in the history
Document capture changed while I was working on the tests, resulting in breaking the tests after merge. This fixes the broken tests.
[skip changelog]
  • Loading branch information
jmax-gsa authored Sep 11, 2024
1 parent 01fd9d1 commit 511d7d3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions spec/features/idv/doc_auth/document_capture_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
end

context 'documents or selfie with error is uploaded' do
shared_examples 'it has correct error displays' do |expect_take_new_pictures_message:|
shared_examples 'it has correct error displays' do
# when there are multiple doc auth errors on front and back
it 'shows the correct error message for the given error' do
perform_in_browser(:mobile) do
Expand All @@ -236,7 +236,7 @@
submit_images

expect_rate_limited_header(false)
expect_try_taking_new_pictures(expect_take_new_pictures_message)
expect_try_taking_new_pictures(false)
expect_review_issues_body_message('doc_auth.errors.doc_type_not_supported_heading')
expect_review_issues_body_message('doc_auth.errors.doc.doc_type_check')
expect_rate_limit_warning(max_attempts - 2)
Expand Down Expand Up @@ -336,8 +336,7 @@
end
end

it_should_behave_like 'it has correct error displays',
expect_take_new_pictures_message: true
it_should_behave_like 'it has correct error displays'
end

context 'IPP not enabled' do
Expand All @@ -350,8 +349,7 @@
end
end

it_should_behave_like 'it has correct error displays',
expect_take_new_pictures_message: false
it_should_behave_like 'it has correct error displays'
end
end

Expand Down

0 comments on commit 511d7d3

Please sign in to comment.