$ git clone https://github.com/ringcentral/ringcentral-web-phone.git
$ yarn install
You need to have a file .env
with at least two accounts:
RC_WP_SERVER=https://platform.devtest.ringcentral.com
RC_WP_CLIENT_ID=
RC_WP_CLIENT_SECRET=
RC_WP_CALLER_JWT_TOKEN=
RC_WP_RECEIVER_JWT_TOKEN=
Accounts and apps must meet requirements.
You may call from one environment to another.
Single test run:
$ yarn test
Keep the browser open to manually refresh tests when needed (useful for debug):
$ yarn run test:watch