This repository shows off how to change your intercepts from a very basic implementation to a customizable, but more complex, intercept strategy.
To run the website, run the following commands:
cd ./todomvc
npm run start
This will start the website on http://localhost:3000
. Be sure that you have nothing else running on that port, or starting the website will fail.
To start Cypress, run the following command in a separate terminal than the website
npm run cypress
From there, select the e2e
tests.
The lessons are meant to be run in order, to show how you can go from a simple intercept strategy to a more complex one. The lessons work best when talked through, but they should be clear enough that you can follow the logic. If you have questions, feel free to ask in the #cypress-automation
channel.