Repository with exercise on automated tests for MB.io using Playwright.
For this project, the following stack was used
- JavaScript
- Docker
- Playwright
Make sure to have the correct Node version installed, which can be found in the .nvmrc
file in the repository root.
The project also uses Yarn, if you don't have one, please follow the installation steps.
- Perform all the tests on the container
docker-compose up
- To perform the tests one by one using the docker build:
docker-compose up -d
- To teardown
docker-compose down
- Install dependencies:
yarn install
- Run End-to-end tests:
yarn test:e2e
- Run End-to-end tests with HTML report:
yarn test:e2e:html
- Open the Mercedes-Benz Shop used cars in the Australian market.
- Fullfil the dialog input data
- Click on the filter icon
- Select Pre-Owned Tab
- Select to filter by Colour
- Navigate to the Vehicle Details of the most expensive car on the filtered results.
- Save the following car details to a file: VIN number Model Year
- In the side vehicle details click “Enquire Now”
- Fill in the “Contact Details and Account Creation” form with invalid data. (e.g. with an invalid email format)
- Click "Proceed" and validate the error.
- Copyright 2023 © Jacqueline Tatiani