Typescript and Playwright with Cucumber e2e testing project.
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
- Download and Install Node JS: https://nodejs.org/en/download
- Download and Install git: https://git-scm.com/book/es/v2/Inicio---Sobre-el-Control-de-Versiones-Instalaci%C3%B3n-de-Git
- Download and Install Visual Studio Code (Optional): https://code.visualstudio.com/download
With Visual Studio Code:
- Download the Project (Download Zip File) or Download from github with visual studio extension.
- Open the project in visual studio
- Install dependencies in visual studio terminal: npm install
- Install Playwright Browsers: npx playwright install
- Run test on Desktop: npm run test:desktop
- Run test on Mobile: npm run test:mobile
- To generate reports run: npm run generate-report
npx playwright codegen playwright.dev
- This test are running after each push in the github repository or can be run manually (access required)
- Test results reports in HTML and VIDEO can be found in latest runs artifacts.
Reyes Cuesta: https://www.linkedin.com/in/reyescuesta