vega-frontend-monorepo/apps/explorer-e2e/README.md
Matthew Russell 0bafa4c7d5
chore: add readmes for token and explorer e2e (#2485)
* chore: add readmes for token and explorer e2e

* fix: typo fix in explorer readme

* fix: typo fix in token readme

Co-authored-by: Edd <edd@vega.xyz>
2022-12-29 20:48:04 -08:00

1.3 KiB

Vega Explorer E2E tests

To run the UI automation tests with Vega Capsule, run:

yarn nx run explorer-e2e:e2e

To open Cypress and run in interactive mode, run:

yarn nx run explorer-e2e:e2e --watch

Vega Capsule Setup

The e2e tests run against a locally running instance of the Vega network, managed and controlled by Vega Capsule. Vega Capsule will:

  • Bootstrap and start up a Vega network
  • Start up Ganache for a local Ethereum network
  • Install the required Vega smart contracts
  • Set up DataNodes with a running GraphQL and REST APIs.

Refer to the Vega Capsule readme for setting up and running Capsule. You will need Go 1.19 or later and Docker installed.

Troubleshooting

  • You may need to run vegacapsule nodes unsafe-reset-all to get a clean network state

Vega Wallet Setup

Start by downloading the Vega wallet software here.

You can then refer to (or run) vegacapsule/setup-vegawallet.sh. This will initialise and configure your wallet to have the correct public keys and network config to run against capsule.