Cypress Training Advent Lesson Day 6
Re-run the end-to-end tests when the application source code changes 👀
Cypress test runner watches the spec file and re-runs the tests when you edit and save the test source code file. What if you run the application locally, and want to run the tests every time you update and save an application source file? Luckily there is a plugin for that cypress-watch-and-reload. Today is your chance to try it out as part of the “Cypress Plugins” course lesson “Lesson a7: Re-run the tests when the source files change with cypress-watch-and-reload plugin“.
Bonus: testing polyfills
Check out my new blog post “Test Polyfills“which shows how to simulate an older browser and verify that your polyfills load and work.
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”