# Automation

The project contains automation tests

## Installation & Running

1. `npm install` to install dependencies
2. `npx playwright install` to install browsers
3. `npx playwright test` to run tests
4. `npx playwright show-report` to open latest report

## File structure

- `src/pages` folder contains page objects
- `src/components` folder contains reusable components
- `src/helpers` folder contains any kind of services (token, validation, etc) and reusable functions
- `src/steps` folder contains functions with reusable steps
- `src/tests` folder contains all test files
- `screenshots` folder contains user created screenshots
- `playwright-report` folder contains reports that are automatically generated after tests run

## Hints

- `npx playwright test --project=chromium` to run tests only on Chromium
- `npx playwright test --grep DEC-9202 --project=chromium` to run only test DEC-9202 on Chromium
