Skip to content

Consolidate duplicated Playwright fixtures (msw-fixture vs wallet-fixture) #1103

Description

@nanaf6203-bit

Context

tests/fixtures/msw-fixture.ts and tests/e2e/wallet-fixture.ts (plus tests/helpers/) overlap in wallet/session mocking and API stub setup, with different patterns used across specs.

Problem

Specs drift in how they mock the chain/API; fixing a mock bug requires touching multiple fixtures, and some specs re-implement mocks inline.

Proposed approach

Create one canonical fixture module exporting wallet and api fixtures (extends Playwright test), migrate specs, delete duplicates, document in tests/README.md.

Acceptance criteria

  • Single fixture module used by all specs
  • No inline mock duplication (grep-verified)
  • E2E suite passes after migration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions