Skip to content

How to test playwright

Cesar Celis Hernandez edited this page Mar 8, 2023 · 16 revisions
  • Get code:
rm -rf ~/console
cd ~/
gcconsole
cd ~/console
updateconsole
git push
git remote add coworker [email protected]:dvaldivia/console.git
git fetch coworker
git branch -v -a
git checkout adopt-playwright
  • MinIO:
MINIO_ROOT_USER=minioadmin MINIO_ROOT_PASSWORD=minioadmin minio server /Volumes/data{1...4} --address :9000 --console-address :9001
  • console server at 9090
cd ~/console
make install
~/go/bin/console server
  • console at port 5005
cd ~/console/portal-ui
yarn install
yarn start
  • Execute the tests:
cd /Users/cniackz/console/portal-ui
npx playwright test
  • get report
npx playwright show-report
  • get coverage
nyc report --reporter=html
file:///Users/cniackz/console/portal-ui/coverage/index.html
Screenshot 2023-03-08 at 1 58 03 PM
Clone this wiki locally