Skip to content

Updating Mnemonics in E2E Tests #144

@rabi-siddique

Description

@rabi-siddique

Currently, we have written end-to-end (E2E) tests in the eocn-gov project to verify governance functionality for different wallet roles. Specifically, these tests ensure:

  1. Gov4 Wallet Functionality: The gov4 wallet can successfully propose and vote on governance questions.
  2. Gov3 Wallet Restrictions: The gov3 wallet is restricted from proposing and voting on questions via the UI, reflecting its revoked governance rights.

Updating Mnemonics for Testnets

While the tests work as expected, updating the environment for testnet deployments requires modifying the mnemonics associated with gov3 and gov4 wallets. These mnemonic updates are crucial whenever Economic Committee (EC) changes are deployed to testnets. The relevant mnemonics are located in the test code, specifically in the object linked here: Mnemonic Configuration in utils.js.

Currently, this configuration looks like:

gov3Phrase: Cypress.env('GOV4_PHRASE'),
gov4Phrase: Cypress.env('GOV3_PHRASE'),

However, when deploying to testnets, this should be updated as follows:

gov3Phrase: Cypress.env('GOV3_PHRASE'),
gov4Phrase: Cypress.env('GOV4_PHRASE'),

This mnemonic switch is required to reflect the updated governance roles:

  • Gov4 will be assigned as the new Economic Committee (EC) member with active governance rights.
  • Gov3 will assume the role of the former EC member, who no longer has the authority to propose or vote on governance questions.

Essentially, we will update all sections of the code that include the comment // UNTIL https://github.com/Agoric/dapp-econ-gov/issues/144 in #142.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions