$ git clone https://github.com/ringcentral/ringcentral-web-phone.git
$ npm install
You need to have a file .env
with at least two accounts and apps:
RC_WP_CALLER_USERNAME=+12223334455
RC_WP_CALLER_PASSWORD=xxx
RC_WP_CALLER_APPKEY=xxx
RC_WP_CALLER_APPSECRET=xxx
RC_WP_CALLER_SERVER=https://platform.devtest.ringcentral.com
RC_WP_RECEIVER_USERNAME=+12223334455
RC_WP_RECEIVER_PASSWORD=xxx
RC_WP_RECEIVER_APPKEY=xxx
RC_WP_RECEIVER_APPSECRET=xxx
RC_WP_RECEIVER_SERVER=https://platform.devtest.ringcentral.com
Accounts and apps must meet requirements.
You may call from one environment to another.
Single test run:
$ npm test
Keep the browser open to manually refresh tests when needed (useful for debug):
$ npm run test:watch
Make sure version in src/ringcentral-web-phone.js
is bumped.