Skip to content

cam-pinheiro/E2E_Playwright_Cucumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright E2E Test

Typescript and Playwright with Cucumber e2e testing project.

💻 Description

E2e tests for https://www.saucedemo.com/

Covered Features:

  • Login in Sauce Lab

  • Add a product in the cart

  • Remove a product in the cart

  • Product list ordered by name

  • Product list ordered by price

  • Buy a product

  • 💻 Pre-requisites

  1. Download and Install Node JS: https://nodejs.org/en/download
  2. Download and Install git: https://git-scm.com/book/es/v2/Inicio---Sobre-el-Control-de-Versiones-Instalaci%C3%B3n-de-Git
  3. Download and Install Visual Studio Code (Optional): https://code.visualstudio.com/download

🚀 Install the project

With Visual Studio Code:

  1. Download the Project (Download Zip File) or Download from github with visual studio extension.
  2. Open the project in visual studio
  3. Install dependencies in visual studio terminal: npm install
  4. Install Playwright Browsers: npx playwright install

Run tests in local:

  1. Run test on Desktop: npm run test:desktop
  2. Run test on Mobile: npm run test:mobile

Generate Test results report:

  1. To generate reports run: npm run generate-report

Run Playwright Code Generator

npx playwright codegen playwright.dev

Run tests on CI with github Actions:

  1. This test are running after each push in the github repository or can be run manually (access required)
  2. Test results reports in HTML and VIDEO can be found in latest runs artifacts.

Autora

Reyes Cuesta: https://www.linkedin.com/in/reyescuesta

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published