cit-playwright-tests
v1.0.0
Published
- nvm - node `v16.15.0` or above - yarn
Downloads
7
Readme
Pre-requisites
- nvm
- node
v16.15.0
or above - yarn
Setup prerequisites and VS Code on a Mac
NOTE: If you have the above pre-requisites installed, mac_setup.sh can be skipped.
WARNING: If you are on Intel chip Macs, you are better off installing the pre-requisites manually.
$ sh mac_setup.sh
Setup projects
NOTE: If you are setting up for the first time, run:
$ yarn build
NOTE: The
playwright-base
andcit-base
directory will be soon published as a npm module to opengov npm registry. The current build process is a workaround to mimic the exported module behavior. For that reason, everytime you introduce any new code in/playwright-base
or/cit-base
you will need to run:
$ yarn cache clean && yarn nuke && yarn build
Run Storefront tests
Run Employee App tests
Checking in code
- Make sure to run
yarn lint
before checking in any code- This will run Eslint + Prettier checks
- To fix prettier errors automatically, run:
yarn format