How to test playwright - cniackz/public GitHub Wiki
-
Get code from the repo
-
Start MinIO Server:
MINIO_ROOT_USER=minioadmin MINIO_ROOT_PASSWORD=minioadmin minio server /Volumes/data{1...4} --address :9000 --console-address :9001
- Start console server at 9090
cd ~/console
make install
~/go/bin/console server
- Start console at port 5005
cd ~/console/portal-ui
yarn install
yarn playwright
- Execute the tests:
cd ~/console/portal-ui
npx playwright test
- get report
cd ~/console/portal-ui
npx playwright show-report
- get coverage
cd ~/console/portal-ui
nyc report --reporter=html; open ./coverage/index.html