Skip to content

Regression specs for users with cancelled and failed in_person_enrollments#11141

Merged
eileen-nava merged 5 commits intomainfrom
em/regression-specs-for-backfill
Aug 29, 2024
Merged

Regression specs for users with cancelled and failed in_person_enrollments#11141
eileen-nava merged 5 commits intomainfrom
em/regression-specs-for-backfill

Conversation

@eileen-nava
Copy link
Copy Markdown
Contributor

@eileen-nava eileen-nava commented Aug 22, 2024

Includes tests to catch bug where users with cancelled and failed in_person_enrollments can't access the account page.

@eileen-nava eileen-nava requested review from a team and shanechesnutt-ft August 29, 2024 15:43
# Make the in_person_enrollment and associated profile failed
in_person_enrollment = user.in_person_enrollments.first
in_person_enrollment.update!(status: :failed, status_check_completed_at: Time.zone.now)
end
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@eileen-nava For both, we need to update the profile as well. (You did this for expired below)

profile = user.profiles.first
profile.deactivate_due_to_in_person_verification_cancelled

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@gina-yamada Thanks for catching that! I fixed it in 9e19f4a.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for adding these specs.

@gina-yamada gina-yamada self-requested a review August 29, 2024 18:02
@eileen-nava eileen-nava merged commit 67c0b87 into main Aug 29, 2024
@eileen-nava eileen-nava deleted the em/regression-specs-for-backfill branch August 29, 2024 20:16
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