1.0
The purpose of this project is to provide a solved fixed challenge to Wizeline Testing Days to perform Front-End testing using Playwright with TypeScript.
This project covers the following scenarios and practices:
- Login using a standard user credentials.
- Login using a fake user credentials.
- Order products by ascending price.
- Add the two cheaper products to the cart and check that everything is added correctly.
- Complete a purchase.
- Playwright
- TypeScript
│ ├── data # Data provider files.
│ ├── pages # Page Objects.
│ └── tests # Front-End Tests are located here.
└── .gitignore
└── README.md
└── package-lock.json
└── package.json
└── playwright.config.ts
└── .env
- Node.js (latest version).
- VSCode (highly recommended).
- Playwright Test for VSCode Extension (highly recommended).
- Clone this repository.
- Navigate to the project folder using the terminal.
- Run the
npm installcommand. - Create a .env file at root level with the following variables:
USERNAME='standard_user'
PASSWORD='secret_sauce'
- @playwright/test
- dotenv