Web testing example using Cypress with BDD support.
- There are two branches in this repository:
main
: complete version with BDD support.simple
: simple version without BDD support.
Each branch has specific How to Use
guide. Please read that guide based on the branch that chosen.
-
The web application that is used for testing is saucedemo.com.
-
This is the list of features that are already tested.
Feature Name | Test File |
---|---|
Login | login.js |
Logout | logout.js |
Cart | cart.js |
- The Gherkin syntax declarations for each feature are available in
features
directory.
-
Clone this repository.
-
Install the dependencies.
npm install
- Run the tests.
npx cypress run