npm login -> npm run login

This commit is contained in:
Ralf Vogler 2021-12-28 20:59:53 +01:00
parent 0394dc3f94
commit 81b04f6f2f
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
Setup: `npm install && npx playwright install` (downloads {chromium, firefox, webkit} (742 MB) to cache in home ([doc](https://playwright.dev/docs/browsers#managing-browser-binaries))).
Run `npm login` which opens a browser where you can login. When closing the browser, it writes a file `auth.json` containing cookies that should keep you logged in for some time (`expires` in a month?).
Use `npm run login` which opens a browser where you can login. When closing the browser, it writes a file `auth.json` containing cookies that should keep you logged in for some time (`expires` in a month?).
Then use `npm start` to run Chrome in headless mode to claim the current free game.
If something goes wrong, use `PWDEBUG=1 npm start` to [inspect](https://playwright.dev/docs/inspector).