Skip to content

E2E Testing: Full campaign lifecycle via frontend #8

@alexanderkoh

Description

@alexanderkoh

Description

Test the complete campaign lifecycle through the frontend UI with a connected wallet.

Test Plan

Prerequisites

  • Freighter or xBull wallet installed with testnet account
  • Testnet account funded via friendbot
  • Admin transfers test USDC to wallet

Test Cases

1. Explore Page

  • /explore shows campaigns fetched from testnet
  • Campaign cards display pool address, reward amount, TVL
  • Clicking a campaign navigates to /campaign/{id}

2. Campaign Detail Page

  • /campaign/1 shows campaign data from chain
  • Pool address, creator, reward pool, target LP displayed
  • User position shown when wallet connected
  • Deposit panel visible and functional

3. Create Campaign

  • /campaign/new — pool dropdown shows FLASH/USDC pool
  • FLASH rate fetched from on-chain reserves
  • Submit creates a real create_campaign transaction
  • Signed via wallet and submitted to testnet
  • New campaign appears in /explore

4. Join Campaign

  • Enter USDC amount in deposit panel
  • join_campaign transaction signed and submitted
  • User position updates (rank, LP, weight)
  • Campaign total_lp increases

5. Claim Rewards

  • /rewards shows positions with claimable FLASH after vesting
  • Claim transaction submitted
  • FLASH transferred, LP returned when fully vested

Testnet Contracts

  • Campaign Manager: CBPMWPBYMA7JE7FNFQURFKRLAUP7AO4PUQSGMMJCM6PVLITMC3M6UWNU
  • TinyAMM: CCG3PH6EV6TI2UR5DH4YDSEHVMRFZJ3RJBILUFROVCB2UTSF4WAFGCLV
  • FLASH: CC64MIMYTVOY27745VMTBJAJ5G6HOIK42N2C2RYVXWGJCH46FCFTCFYL
  • USDC: CCRKSTMLQFHUDJ6ORHYTBVETGFLJTJ7XLXITLAFOTGEZK3J6UMEDZ3JA
  • Treasury: CDRPWM7JWXVF4PST3EHZFAGDWV5RVY5DV3TS4NGVQAZ6UC45CTKHTAVZ

Metadata

Metadata

Assignees

No one assigned

    Labels

    mainnetRequired for mainnet launchtestingTesting and QA

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions