Skip to content

Write E2E test: governance proposal lifecycle #282

Description

@Nursca

Description
Governance must be verified end-to-end: creating a proposal, voting, waiting for the timelock, executing, and verifying the parameter change takes effect in the main contract.

Requirements and context

  • Create a governance proposal to change MIN_INVOICE_AMOUNT
  • Cast votes to pass quorum
  • Wait for the voting period to close (use ledger fast-forward if available on local node)
  • Execute the proposal after timelock
  • Verify the main contract uses the new MIN_INVOICE_AMOUNT by submitting a below-threshold invoice and confirming rejection

Suggested execution

git checkout -b test/e2e-governance
  • Create tests/e2e/governance.test.ts
  • Implement ledger fast-forward helper if local node supports it
  • Write proposal lifecycle and parameter verification tests

Example commit message
test(e2e): add governance proposal lifecycle E2E tests

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions