Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test admin interface #158

Open
KatrinaHoffert opened this issue Mar 26, 2015 · 0 comments
Open

Test admin interface #158

KatrinaHoffert opened this issue Mar 26, 2015 · 0 comments
Labels
Milestone

Comments

@KatrinaHoffert
Copy link
Owner

Things to test include:

  1. An unauthenticated user can't access /admin/list (should get redirected to /admin, the log in page).
  2. Users with correct authentication can log in and can access /admin/list.
  3. Check that /admin/list has certain locations.
  4. Incorrect credentials should fail.
  5. Create a new location (be sure to test adding a new inspection).
  6. Modify that location.
  7. Delete that location.
  8. Logging out should remove credentials (test by trying point 1 again).
  9. Cannot submit an empty form.
  10. Cannot submit with a bad postal code.
  11. Cannot submit with a bad date.
  12. 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).
  13. 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.

@KatrinaHoffert KatrinaHoffert added this to the Milestone 5 milestone Mar 26, 2015
@magnusandy magnusandy modified the milestones: Back Burner, Milestone 5 Mar 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants