A simple Playwright based project for both web and api testing
API tests use weatherbit api key as env variable.
Please create and set up env variable as weatherbitKey
.
Weatherbit api key has been already set up as action secrets and used in the playwright.yml
. So no futher action required
Need to have npm and node.js installed
After cloning the project to local, in the root run npm install
npm test
- run all tests in headless modenpm run test-headed
- run test in head modenpm run test-ui
- open playwright ui console to run testsnpm run test-report
- open the html report
After execution html report exported as artifacts which can be download to view
This repo contains two projects
- Web - for web base testing. Use chromium as default browser. This can be changed in
playwright.config
- api - for api related tests