hedy
hedy copied to clipboard
[TESTING] Refactor cypress tests
As stated by @rix0rrr in #3972 there are two ways in which our tests can be improved:
- Test organization: Instead of having
defines with a singleitwe can group different tests under a singledefine. Saving code and making our test suite more organized. - Selecting HTML elements by ID: Cypress actually prevents against using
idor other HTML attributes used in functionality for the tests.
Update: I will change tests bit by bit
- [x] admin page
- [x] explore program page
- [x] feedback -> #5393
- [x] for-teacher page
- [x] class page -> https://github.com/hedyorg/hedy/pull/5530
- [x] customize class
- [x] customize adventure -> https://github.com/hedyorg/hedy/pull/5683
- [x] general -> #5592
- [x] hedy page -> https://github.com/hedyorg/hedy/pull/5648
- [x] home page
- [x] login page
- [x] recover page
- [x] signup page
- [x] subscribe page -> #5647
- [x] lezer test
- [x] public adventures
- [x] public programs
- [x] teacher page
- [x] tools -> https://github.com/hedyorg/hedy/pull/5683
One more task for @Annelein?