Cypress Training Advent Lesson Day 9
Slow down Cypress tests using cypress-slow-down plugin π’
A Cypress test runs as fast as your application does. As soon as the command succeeds, the test moves on to the next command. This could create a dizzy blur of clicks, typed text, and page transitions. I wrote the plugin cypress-slow-down to delay every command by N milliseconds automatically so you can observe what happens in the test. Follow todayβs lesson βLesson b1: Slow down the test commands using cypress-slow-downβ to learn how to use this plugin in your projects
The plugin can slow down the entire test or just its parts, but that will have to wait until another lesson and another Advent Day.
Previous lessons
Lessons marked with π‘ are from the Cypress Network Testing Exercises course. Lessons marked with π are from the Cypress Plugins course.
Day 1: π‘ βSpec 08: Import the JSON fixture directly into the specβ
Day 2: π‘ βSpec 14: Reloads the page until it sees the word Bananas"Cypress
Day 3: π βLesson a3: Log the messages from the test to the terminalβ
Day 4: π‘ βSpec 04: The application is showing the loading elementβ
Day 5: π‘ βSpec 11: Test how the application makes a network request every minuteβ
Day 6: π βLesson a7: Re-run the tests when the source files change with cypress-watch-and-reload pluginβ
Day 7: π‘ βSpec 16: Get the fruits from the test using the cy.request commandβ
Day 8: π‘ βSpec 19: Intercept a specific request by matching the headerβ