Skip to content

feat: account switching mid-test #5

@satoshai-dev

Description

@satoshai-dev

Summary

Allow changing the active wallet identity during a test without reconnecting, enabling multi-user E2E scenarios.

Use Case

Testing two-sided flows: user A supplies STX, user B borrows against it — within the same test.

Requirements

  • stacks.wallet.switchAccount(index) or similar API to change active identity
  • Re-inject provider with new address/public key into the browser
  • Maintain separate nonce tracking per account
  • Update StacksFixture type to expose the new method
  • Unit tests for account switching logic

Milestone

v0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestroadmapFuture features and direction

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions