Typescript and Playwright with Cucumber e2e testing project.
E2e tests for https://www.saucedemo.com/
Covered Features:
- Visit Home Page
- Login user
- Product page content
- Buy product
- Remove 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
- add tag to scenario in feature file
- Run command npm run test -- --tags '@tag'
- Run in debug mode npm run debug -- --tags '@tag'
- npm run debug:desktop -- --tags '@buyproduct'
- npm run debug:mobile -- --tags '@buyproduct'
- 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.
Alicia Juste: https://www.linkedin.com/in/alicia-juste/