/cypress.io-advance

[WIP] Built to simulate refactoring Cypress tests on an existing codebase and practice additional concepts in test automation.

Primary LanguageJavaScriptMIT LicenseMIT

Test automation with Cypress

By Carlos Urquiza

This course simulates working on an existing code base, rather than a greenfield project...

Technologies Used

  • Cypress
  • JavaScript
  • Git

.

Setup Requirements

  • First, ensure you have Git, node and NPM installed on your computer.

  • Clone this repository.

  • Open your terminal.

  • Navigate to the directory (such as your Desktop) where you want the cloned project to reside.

  • Type git clone https://github.com/webquiza/cypress.io-advance.git.

  • Press Enter.

  • cd into the cypress.io-anvanced folder.

  • Open the project in your code editor.

  • In your terminal, run $ npm install cypress --save-dev to download Cypress as a dev dependency.

  • Run $ npx cypress open which will open Cypress in interactive mode for the first time.

  • Under the INTEGRATION TESTS drop down menu, click on the tickets.spec.js file. This will run the automated tests in interactive mode.

  • Or, you can run the tests in headless mode. To do so run, $ npm test. This will run the tests directly in your terminal.

Demo