Skip to content

josdem/playwright-applitools

Repository files navigation

Playwright Workshop

code style: prettier Playwright

This is a getting started project with Playwright

Requirements

Note: I recommed to use NVM to manage NodeJS versions

To build the project

npm install

To format the project

npx prettier --write .

To run lint validation

npm run lint

To run the project

npx playwright test --project chromium

To see integrated reports

npx playwright show-report

Setting up environment

export APPLITOOLS_API_KEY=${YOUR_APPLITOOLS_API_KEY}

where:

  • ${YOUR_APPLITOOLS_API_KEY} is something like: Ag4hfEVDIMykuCpWk61ppg3VJ9fkK0uht100HXnvGPlag220 (Check with your service provider if you do not have it)

Note

If you are using Windows based platform:

$Env:APPLITOOLS_API_KEY="YOUR_APPLITOOLS_API_KEY"

where:

  • ${apiKey} Is your Applitools api key