Skip to content

Latest commit

 

History

History
88 lines (67 loc) · 2.29 KB

README.md

File metadata and controls

88 lines (67 loc) · 2.29 KB

Senior Automation Challenge Project

This project contains the Senior Automation Challenge project from Winston Cruz consists of the following:

  • Automate 10 test cases for the Sauce Demo page using Screenplay Design Pattern.

UI Testing

The framework contains the following 10 test cases for the webapp https://www.saucedemo.com/:

Login

  1. Login with valid credentials
  2. Login with invalid credentials
  3. Logout
  4. Login with a locked out user

Products

  1. Add product to cart
  2. Remove product from cart
  3. Add multiple products to cart
  4. Remove multiple products from cart
  5. Checkout a product
  6. Checkout multiple product

The test case were documented on the Test Management Tool called TestCollab before proceeding the automation work. Feel free to request me the access to the test cases if needed.

Tech Stack

General Requirements

Clone the Repository

Using SSH

git clone [email protected]:AlephCK/AutomationChallengeV3.git

Dev Install

Install all dependencies

npm install

Using credentials to run Cypress Tests

We use the .env to add the credentials used for the e2e specs tests:

CYPRESS_STANDARD_USER="standard_user"
CYPRESS_LOCKED_OUT_USER="locked_out_user"
CYPRESS_PASSWORD="secret_sauce"

How To Use Cypress

The following commands can be used to run the test cases:

Open Cypress UI

npm run test:gui

Run the e2e tests (on Cypress Run mode)

npm run test

Before doing a commit

Run ESLint to fix any typos

npm run lint:fix

Run ESLint to look out for any typos

npm run lint