casa icon indicating copy to clipboard operation
casa copied to clipboard

System Test Overhaul spec/system/case_court_reports/index_spec.rb

Open FireLemons opened this issue 9 months ago • 1 comments

Description

ensure each test in spec/system/case_court_reports/index_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:

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.

FireLemons avatar Apr 02 '25 04:04 FireLemons

This issue has been open without changes for a long time! What's up?

github-actions[bot] avatar Jun 09 '25 02:06 github-actions[bot]

I would like to work on this one!

theomelo avatar Jul 30 '25 00:07 theomelo

Add to spec/requests/case_court_reports_spec.rb and spec/system/reports/index_spec.rb tests for date filtering.

Add to spec/system/reports/index_spec.rb tests for the correct cases appearing the autocomplete. The correct cases for a volunteer are all the cases the volunteer is assigned to. The correct cases for a supervisor/admin are all of the cases belonging to their parent organization. The dropdown for a supervisor/admin is powered by a widget that requires js. It would be nice to consolidate the admin and supervisor tests to reuse the same code because the site behaves the same for them(optional).

FireLemons avatar Jul 30 '25 00:07 FireLemons

This issue has been inactive for 240 hours (10.00 days) and will be unassigned after 120 more hours (5.00 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

github-actions[bot] avatar Aug 09 '25 00:08 github-actions[bot]

This issue has been inactive for 360 hours (15.00 days) and is past the limit of 360 hours (15.00 days) so is being unassigned.You’ve just been unassigned from this ticket due to inactivity – but feel free to pick it back up (or a new one!) in the future! Thank you again for your contribution to this project.

github-actions[bot] avatar Aug 14 '25 00:08 github-actions[bot]

I'll look at this one today.

AudTheCodeWitch avatar Oct 09 '25 14:10 AudTheCodeWitch

This test file is very flaky locally. I'm working to address that as part of this ticket. However, I am going on a week-long trip starting tomorrow, and I don't think I'll have the chance to finish this before then. I'll put up a draft PR with whatever I have at the end of the day, in case someone wants to take it from there. Otherwise, I'll pick it up again when I get back.

AudTheCodeWitch avatar Oct 09 '25 17:10 AudTheCodeWitch

:)

compwron avatar Oct 09 '25 18:10 compwron

Just a quick update: I am still working on this (almost there)!

AudTheCodeWitch avatar Oct 23 '25 21:10 AudTheCodeWitch

Phew! That one was a doozy, but it's ready for review now!

AudTheCodeWitch avatar Oct 29 '25 21:10 AudTheCodeWitch