vega-frontend-monorepo/apps/explorer-e2e
2023-05-09 14:33:33 +01:00
..
src fix(explorer): network params fixture lookup for updateAsset proposals (#3633) 2023-05-08 17:29:29 +01:00
.env test(ci): capsule update v0.71.1 (#3559) 2023-04-27 14:37:55 +01:00
.env.devnet fix(explorer): fix resizing callout (#2492) 2022-12-30 11:40:47 +00:00
.env.mainnet chore(explorer,trading,governance): new data node & explorer service urls (#3653) 2023-05-09 14:33:33 +01:00
.env.testnet feat(governance): ensure the data node urls in the monorepo are valid (#3549) 2023-04-26 11:10:40 +00:00
.eslintrc.json migrate stuff into new NX 2022-02-23 08:53:57 +00:00
cypress.config.js test(ci): capsule update v0.71.1 (#3559) 2023-04-27 14:37:55 +01:00
project.json feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
README.md chore: update token e2e readme (#2504) 2023-01-05 18:00:29 +01:00
tsconfig.json chore(cypress-11): upgrade to cypress 11.2 (#2251) 2022-11-30 12:32:01 +00:00

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.
  1. Refer to the Vega Capsule readme for setting up and running Capsule - follow by Pre-start and Quick Start (points 1-2)
  2. Bootstrap with auto-installed dependencies including wallet
vegacapsule network bootstrap --config-path=../frontend-monorepo/vegacapsule/config.hcl --force

Troubleshooting

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

Vega Wallet Setup

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

Go to the .env file in apps/explorer-e2e and set the CYPRESS_VEGA_WALLET_API_TOKEN environment variable by pasting in your wallets long lived api token