We have cypress, but currently there are no integration tests for the frontend. To ensure that new changes don't break old features we should start writing tests that cover cases we currently support.
TODO: add pages to this list
HOME PAGE
[x] signin button works
DASHBOARD
[x] dashboard includes lang in url
[x] Sidebar buttons are visible
[ ] Dashboard button should be highlighted
DECKS
[x] creating and deleting a deck works
[x] editing a deck works
[ ] practicing the deck works (in all modes)
COLLECTIONS
[ ] creating a collection with that deck works
[ ] practicing the collection works (in all modes)
PROGRESS
[
AUTHENTICATION/ROUTE AUTH REQUIREMENTS
[ ] setting username works
[x] dashboard should redirect to login when not signed in
[x] decks page should redirect to login
[x] deck creation redirects to login when not signed in
[x] progress page should redirect to login
[x] collections page should redirect to login
[x] collection creation redirects to login when not signed in
USER
[x] dropdown shows username and email
[x] dropdown contains user settings
[x] user settings screen shows correct academic level
[x] user settings allows switching academic level (also switching it back)
We have cypress, but currently there are no integration tests for the frontend. To ensure that new changes don't break old features we should start writing tests that cover cases we currently support.
TODO: add pages to this list
HOME PAGE
DASHBOARD
DECKS
COLLECTIONS
PROGRESS
AUTHENTICATION/ROUTE AUTH REQUIREMENTS
USER