Coder Social home page Coder Social logo

safe-react-e2e-tests's Introduction

Gnosis Safe e2e tests

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.

Getting Started

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.

Installing and running

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

Environment variables

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

MNEMONIC (REQUIRED)

A MNEMONIC is required to initialize Metamask and have the first owner key

PRIVATE_KEY_GROUP (MINIMUM 1 IS REQUIRED)

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"

PASSWORD (REQUIRED)

A password to unlock Metamask

TESTING_SAFE_ADDRESS (REQUIRED)

An address of an already deployed safe to be used during the tests

FUNDS_RECEIVER_ADDRESS (REQUIRED)

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

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

safe-react-e2e-tests's People

Contributors

juampibermani avatar francovenica avatar dependabot[bot] avatar danisomoza avatar dasanra avatar katspaugh avatar diogosoaress avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.