This repository contains the code to run e2e tests in Gnosis Safe web interface
For technical information please refer to the Gnosis Developer Portal.
For support requests, please open up a bug issue or reach out via Discord.
These instructions will help you to run a set of e2e tests to a Gnosis Safe interface. This can be specially helpful when developing features for the Gnosis Safe web interface, as a quick check of all the interface features.
Install dependencies for the project:
yarn install
Run using the config in your .env
file. If no .env is defined this command will use dev
environment
yarn test
To test a local instance of the project:
yarn test-local
It should be running at http://localhost:3000/
To run against a PR instance:
PR=xxxx yarn test-pr
More testing environments can be check at utils/config.js
It's highly recommended to defined environment variables in order to setup a testing environment. The app is able to pick environment variables from the .env
file. Copy our template to your own local file:
cp .env.example .env
A MNEMONIC is required to initialize Metamask and have the first owner key
A list of private keys can be set in order to add more owners to Metamask. They should follow the list format in one line:
"0xPrivateKey1, 0xPrivateKey2, 0xPrivateKey3"
A password to unlock Metamask
An address of an already deployed safe to be used during the tests
An address to use as receiver on those tests where sending funds is involved. It should be one of the owners from the Safe
NON_OWNER_ADDRESS (REQUIRED) An address that is controlled by the user but is not an owner of the safe
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE.md file for details