Skip to content

How to test playwright

Cesar Celis Hernandez edited this page Mar 10, 2023 · 16 revisions
  • 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
Screenshot 2023-03-09 at 5 38 25 PM
Clone this wiki locally