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).
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).