Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

jmax-gsa
Copy link
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
@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
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
2 checks passed
@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