troccoli / lva

This is a project to help the London Volleyball Association (LVA) Referee Administrators manage referees' appointments
MIT License
0 stars 0 forks source link

[EPIC] Refactor Dusk Fixtures test into Cypress #114

Open troccoli opened 4 years ago

troccoli commented 4 years ago

The Tests\Browser\CRUD\FixturesTest test takes far too long, more than 15 minutes. This is unacceptable. Besides, many times it fails because the SPA is taking too long.

The current Dusk test uses a lot of pause(1000) statements throughout to try and let the application catch up with the test. Many times this is not enough and the test fails.

By refactoring this test in Cypress we accomplish two things: we show how testing can be done in Cypress too, and we don't need to programmatically pause our test in order to wait for the page, as Cypress does this automatically (up to 5 seconds).