Recidiviz / justice-counts

Technical infrastructure for the Justice Counts initiative
GNU General Public License v3.0
2 stars 0 forks source link

[Publisher][Admin Panel] Add unit test to ensure modal loader behaves as expected for Create and Edit flows #1545

Closed mxosman closed 1 month ago

mxosman commented 1 month ago

We ran into an issue where the modal loader was spinning indefinitely when a user tried to access the Create User/Agency modal. This was caused by us initializing the loader in the AdminPanelStore as true which was unnecessary since we already do that for the fetchAgencyTeam and fetchUserAgencies methods (this was totally my bad for giving bad instructions!). Let's add a test to ensure the loading works as expected for the Create and Edit modals.

Reference fix: https://github.com/Recidiviz/justice-counts/pull/1544