- JS naming conventions ./docs/js-naming-conventions.md
- DemoBlaze
- Docker for allure reports(optional)
npm install
- Create our .env file from .env.example
- Complete the project and environment
- Optionally
docker-compose up -d
It will spin up docker containers for local Allure reports, reports will be automatically generated every 40seconds(configured indocker-compose.yml
)- add to .env your local allure server url and set it as true
npm run test
All tests within selected project on selected environment in Chrome(by default) browser.
Sometimes it is helpful to run e2e test suite againts your balanced server locally, one needs to properly config e2e as follow.
- Create a new .env file and overwrite with these values:
PROJECT=DemoBlaze
TEST_ENVIRONMENT=demo1
-
Open file
urls.ts
and updatedemo1.website
withhttps://www.demoblaze.com/index.html
-
Run command
npx playwright test --trace on --workers 1
Note: If one find tests run too slow, speed it up by:
- Increasing number of workers running concurrently (eg.
--workers 4
). - Decreasing slow motion by editing field
slowMo
in fileproject.config.ts
.
Beware speeding up may cause more flakiness from tests.