Skip to content

[QA-3] Wallet-connected test — trading + rating flow (operator + chrome) #129

@realproject7

Description

@realproject7

Overview

End-to-end test of trading and rating flows. Requires operator for MetaMask approvals.

Prerequisites:

  • Existing storyline with token (from QA-2)
  • Wallet connected with WETH balance

Test flow — Trading:

  1. Navigate to /story/[storylineId]
  2. Trading widget: enter amount to buy → approve token allowance → operator approves → buy tx → operator approves
  3. Verify: balance updates, price changes
  4. Try sell flow: enter amount → sell tx → operator approves
  5. Verify: balance decreases, refund received

Test flow — Rating:

  1. With tokens held, rating widget should show star selector
  2. Select rating (e.g., 4 stars) + optional comment
  3. Sign message → operator approves MetaMask signature
  4. Verify: rating submitted, average updates
  5. Without tokens: verify "Hold tokens to rate" prompt appears

Test flow — Donations:

  1. Donate widget: enter amount → operator approves tx
  2. Verify: donation recorded, shows in story page

Check:

  • Buy/sell transactions work end-to-end
  • Token balance reflects correctly
  • Rating submission with signature works
  • Non-holder gate works
  • Donation flow works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions