This is the companion code to the talk "Gaining Confidence with Cypress Tests" at https://robrich.org/slides/gaining-confidence-cypress-tests/#/. It demonstrates using Cypress tests with TypeScript to check TodoMVC projects and HNPWA.
Launch the Cypress IDE to run tests and visually inspect results.
-
npm installto get all the Node modules. -
npm run cy:opento open the Cypress IDE. -
Choose a browser to use for the test run in the drop-down on the top-right.
-
Double-click a test file to run it, or choose "run all" in the top-right.
In a CI run, we'll run headless.
-
npm installto ensure all Node modules are installed. -
npm run cy:run-chrometo run all the tests in Chrome ornpm testto run the tests in Chrome, Firefox, and Edge. -
Look in the
resultsfolder for screen shots, videos, and xml test result files.
MIT