vega-frontend-monorepo/apps/governance-e2e
Art 933878acf5
chore(ui-toolkit): leftover dependencies (#3485)
Co-authored-by: Joe <joe@vega.xyz>
2023-04-21 16:16:04 +01:00
..
src chore(ui-toolkit): leftover dependencies (#3485) 2023-04-21 16:16:04 +01:00
.env fix(governance): withdrawals bug (#3443) 2023-04-20 17:18:17 +01:00
.env.devnet chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022) 2023-02-28 10:56:29 -08:00
.env.mainnet chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022) 2023-02-28 10:56:29 -08:00
.env.stagnet3 chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022) 2023-02-28 10:56:29 -08:00
.env.testnet chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022) 2023-02-28 10:56:29 -08:00
.eslintrc.json chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022) 2023-02-28 10:56:29 -08:00
cypress.config.js chore(ci): bump typescript (#3444) 2023-04-20 11:56:33 +00:00
project.json chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022) 2023-02-28 10:56:29 -08:00
README.md chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022) 2023-02-28 10:56:29 -08:00
tsconfig.json test(governance): governance tests refactor (#3059) 2023-03-22 17:35:00 +00:00

Vega token website E2E tests

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

yarn nx run governance-e2e:e2e

To open Cypress and run in interactive mode, run:

yarn nx run governance-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/governance-e2e and set the CYPRESS_VEGA_WALLET_API_TOKEN environment variable by pasting in your wallets long lived api token