Skip to content

Jmax/lg 13092 delete duplicate tests in document capture spec.rb#11165

Merged
jmax-gsa merged 17 commits intomainfrom
jmax/LG-13092-delete-duplicate-tests-in-document_capture_spec.rb
Sep 11, 2024
Merged

Jmax/lg 13092 delete duplicate tests in document capture spec.rb#11165
jmax-gsa merged 17 commits intomainfrom
jmax/LG-13092-delete-duplicate-tests-in-document_capture_spec.rb

Conversation

@jmax-gsa
Copy link
Copy Markdown
Contributor

🎫 Ticket

Link to the relevant ticket:
LG-13092

🛠 Summary of changes

Consolidated a bunch of test cases in features/idv/doc_auth/document_capture_spec.rb for speed and eliminated some test duplication.

All of the doc capture error handling except rate limiting is now tested in a single inline test (that bumps the rate limits so that we don't trip over them) that retries with different error conditions to check the messages shown for each. This is much faster than restarting IdV from scratch for each error.

📜 Testing Plan

  • Ensure that all tests pass without errors, especially the changed feature spec.
  • Verify by inspection that the old test conditions are all still covered by the consolidated specs.

@jmax-gsa jmax-gsa force-pushed the jmax/LG-13092-delete-duplicate-tests-in-document_capture_spec.rb branch from 6f77503 to e8f3079 Compare August 29, 2024 17:03
Comment thread spec/features/idv/doc_auth/document_capture_spec.rb Outdated
@jmax-gsa jmax-gsa force-pushed the jmax/LG-13092-delete-duplicate-tests-in-document_capture_spec.rb branch from 19540f4 to fa79f7a Compare September 9, 2024 14:35
@jmax-gsa jmax-gsa marked this pull request as ready for review September 9, 2024 14:52
Copy link
Copy Markdown
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work! LGTM

@jmax-gsa jmax-gsa merged commit edc8fb2 into main Sep 11, 2024
@jmax-gsa jmax-gsa deleted the jmax/LG-13092-delete-duplicate-tests-in-document_capture_spec.rb branch September 11, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants