Skip to content

Race Condition Check: spec/system/volunteers/edit and notes/edit_spec.rb specs#6767

Merged
compwron merged 5 commits intorubyforgood:mainfrom
hexdevs:sb-volunteers-system-spec-take4-6698
Mar 11, 2026
Merged

Race Condition Check: spec/system/volunteers/edit and notes/edit_spec.rb specs#6767
compwron merged 5 commits intorubyforgood:mainfrom
hexdevs:sb-volunteers-system-spec-take4-6698

Conversation

@stefannibrasil
Copy link
Copy Markdown
Contributor

@stefannibrasil stefannibrasil commented Mar 10, 2026

What github issue is this PR for, if any?

Related #6698

What changed, and why?

These tests were pretty good and have a few opportunities to reduce race condition issues. Since I was reviewing them, I took the opportunity to improve the tests by:

  • defaulting to building instead of creating factories as much as possible
  • adding unit tests for resend invitations and reminders to volunteers
  • move/add browser assertions before asserting against the mailer checks to prevent race conditions issues
  • removes unused factories

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 labels Mar 10, 2026
@stefannibrasil stefannibrasil marked this pull request as ready for review March 10, 2026 21:13
@stefannibrasil stefannibrasil force-pushed the sb-volunteers-system-spec-take4-6698 branch from beb390b to 4afee2d Compare March 11, 2026 17:27
@stefannibrasil stefannibrasil force-pushed the sb-volunteers-system-spec-take4-6698 branch from 5df0c87 to e420372 Compare March 11, 2026 17:36
@stefannibrasil
Copy link
Copy Markdown
Contributor Author

@FireLemons I made the changes you suggested yesterday at the office hours. Let me know what other suggestions you have. Thanks!

@compwron compwron merged commit 6639586 into rubyforgood:main Mar 11, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ruby Pull requests that update Ruby code Tests! 🎉💖👏

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants