System Test Overhaul spec/system/casa_org/edit_spec.rb
Description
ensure each test in spec/system/casa_org/edit_spec.rb is checking for database updates after the page has finished loading after a submit
See: https://github.com/rubyforgood/casa/pull/6305 for an example
Other improvements to tests in the file are welcome
If there are none, leave a comment on this issue and we will close the issue
Login Emails for test environment:
- [email protected] view site as a volunteer
- [email protected] view site as a supervisor
- [email protected] view site as an admin
- [email protected] view site as an all casa admin
- go to
/all_casa_admins/sign_in
- go to
password for all users: 12345678
Questions? Join Slack!
We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.
This issue has been open without changes for a long time! What's up?
Verified similar behavior in spec/system/users/edit_spec.rb as part of #6333.
- Confirmed that each test asserts DB updates after submission using
reloadand field-level checks - Email delivery and content validated via ActionMailer::Base.deliveries
- Email body inspected to confirm expected messaging
- All 34 examples passed with no failures on 2025-07-09