Skip to content

Latest commit

 

History

History

playwright-demo

playwright-demo

quick start

create .env file

# replace by your own
export OPENAI_API_KEY="sk-abcdefghijklmnopqrstuvwxyz"

e2e command

pnpm install 
pnpm exec playwright install

# run e2e test
pnpm run e2e

# prefer using cache
pnpm run e2e:cache

# run e2e with playwright ui, remember to click the little "Play" button on the upper-left corner
pnpm run e2e:ui

# run e2e with playwright ui + cache
pnpm run e2e:ui:cache


# read report
# You must run the pnpm run e2e or pnpm e2e:cache to view the report
node ./midscene_run/midscene-report/index.js

Reference

https://midscenejs.com/docs/getting-started/quick-start.html https://midscenejs.com/docs/usage/API.html