Skip to content

Rebuild Docker validator image with Phase 10-12 instructions for E2E tests #22

@0xLeathery

Description

@0xLeathery

Context

Four Playwright E2E transaction test specs are gated by environment variables because the Docker Solana validator binary predates Phases 10-12. The UI tests in each spec run, but the on-chain transaction tests skip.

Gated Tests

Spec Gate Variable Missing Instruction
referral-stake.spec.ts REFERRAL_PROGRAM_READY create_stake_with_referral (Phase 10)
badge-claim.spec.ts BADGE_MINT_READY Bubblegum V2 collection setup (Phase 11)
free-claim.spec.ts CLAIM_PERIOD_READY Claim period initialization
on-time-unstake.spec.ts ON_TIME_STAKE_READY Requires long-running stake maturity

What's Needed

  1. Rebuild the Docker validator image with the latest anchor build output that includes Phase 10's create_stake_with_referral instruction
  2. Update Docker compose setup to include the badge collection initialization script (scripts/setup-badge-collection.ts) in the startup sequence
  3. Update E2E global setup to handle the new instruction accounts and PDAs
  4. Remove env var gates once the infrastructure supports the full instruction set

Current Workaround

Tests are properly documented — each test.skip() includes a clear message explaining the prerequisite. UI tests (page structure, element visibility) run unconditionally.

Impact

Enhancement — E2E coverage is structurally complete but transaction tests don't execute. Rebuilding the Docker image would enable full end-to-end validation.

Source

v1.1 Milestone Audit — .planning/v1.1-MILESTONE-AUDIT.md (tech_debt, Phase 13)
Referenced specs: app/web/e2e/transactions/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions