These are the tests for the Poly Dapp Suite.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Make sure that you have the prequisites already installed
- Install NodeJS (check package.json)
We only support yarn installs, npm install will inevitably fail.
git clone [email protected]:josepmc/issuer-test.git
$ yarn
$ npm test
The following environment variables are required for the tests to work:
- TEST_MM_SECRET: Your Metamask secret
- TEST_MM_PASSWORD: Your Metamask password
- TEST_MM_ACCOUNT_NUMBER: Optional. Indicates which account number from Metamask to use
The following are required for the email-related tests to work:
- TEST_EMAIL_USER: Your email user
- TEST_EMAIL_PASSWORD: Your email password (you need to activate the set your account to allow weak security applications) or an application password
Supported domains are gmail.com and outlook.com.
You can set all these variables in a .env file if you're debugging, and VS Code will load them on runtime
- This repo uses the decorators framework from josepmc/protractor
- You may need to use the app locally, but you can pretty much configure everything in config/base.ts