You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An unauthenticated user can't access /admin/list (should get redirected to /admin, the log in page).
Users with correct authentication can log in and can access /admin/list.
Check that /admin/list has certain locations.
Incorrect credentials should fail.
Create a new location (be sure to test adding a new inspection).
Modify that location.
Delete that location.
Logging out should remove credentials (test by trying point 1 again).
Cannot submit an empty form.
Cannot submit with a bad postal code.
Cannot submit with a bad date.
Cannot submit with bad violation IDs (they're a comma separated list, so anything that's not a comma separated list or numbers that aren't in the range of 1 - 16 are invalid).
Cannot submit with bad RHA (this would require manually building a form and submitting that as a POST request to /admin/list/add).
Note: the table used on the admin list page is not our code. Don't waste time testing it. Also, the validation on the add and edit pages are exactly the same. In fact, the pages themselves use the same code except for some very minor tweaks.
Also note that /admin/list takes several seconds to load. Might want to group all the tests for that page into one, to avoid unnecessary loads.
The text was updated successfully, but these errors were encountered:
Things to test include:
/admin/list
(should get redirected to/admin
, the log in page)./admin/list
./admin/list
has certain locations./admin/list/add
).Note: the table used on the admin list page is not our code. Don't waste time testing it. Also, the validation on the add and edit pages are exactly the same. In fact, the pages themselves use the same code except for some very minor tweaks.
Also note that
/admin/list
takes several seconds to load. Might want to group all the tests for that page into one, to avoid unnecessary loads.The text was updated successfully, but these errors were encountered: