therungg/therun-frontend

Implement a test suite for E2E testing and write some initial tests

developerrowan opened this issue · 2 comments

Inevitably, TheRun will continue to grow. Refactors are sure to come within the next half-year, but they won't be the last.

It would then be prudent to implement, and begin writing tests with, a testing framework. This way, we can ensure frontend functionality does not become corrupted throughout (inevitable) refactors.

Vercel provides wonderful documentation on doing it.
https://nextjs.org/docs/pages/building-your-application/optimizing/testing

But we don't need to just set up the suite - setting precedent by writing some good, initial tests is of paramount importance.

Agreed. I used Cypress a lot, but never really bothered to implement it for this frontend. I have extensive testing in the backend, and it would be good to have at least some for the crucial processes in the frontend as well.

e2e testing may be tricker than expected, for now closing this. It can be re-opened when we're more comfortable approaching this topic.