Using Rahul Shetty's course via Udemy, I've learned how to problem-solve automation issues and automate E2E processes/flows via Cypress
with Node.js
and Mocha
for web applications.
Before we can run the tests in this repository, we need to have Git, Node.js, and Cypress installed onto your machine. The IDE I use to create/run this code (and suggest you to install as well) is Visual Studio Code.
Clone the repository onto your machine and install the dependencies listed in package.json
by copying these steps into your CLI:
# Clone this repository
$ git clone https://github.com/emilyashburn/Cypress_Examples.git
# Move into the cloned repository
$ cd Cypress_Examples
# Install the dependencies
$ npm install
# Run all tests on default settings (headless, Electron browser, all specs, ...)
$ npx cypress run
# ...or...
# Run the tests in 'headed' mode in chrome
$ npx cypress run --headed -b chrome