Skip to content

Issue 16: Automated E2E Regression Playwright Tests via Virtual Wallet Injections #15

Description

@elizabetheonoja-art

Scope

File: tests/e2e/wallet.spec.ts

Problem

There are no automated regression tests for the wallet connection flow. Manual testing of connect/disconnect/switch-account across multiple browser contexts is time-consuming and inconsistent. Without E2E coverage, regressions in the auth pipeline can ship to production unnoticed.

Requirements

  1. Write Playwright tests covering:
    • "should display connect button when wallet is disconnected"
    • "should connect wallet and show truncated address"
    • "should disconnect wallet and show connect button"
    • "should persist wallet session across page reload"
  2. Write dashboard integration tests:
    • "should render the grid map canvas"
    • "should display fleet grid with assets"
    • "should filter fleet grid by status"
  3. Configure playwright.config.ts with:
    • baseURL: "http://localhost:3000"
    • webServer: { command: "npm run dev", url: "http://localhost:3000" }
    • retries: 1, workers: 1 for CI stability
    • HTML reporter
  4. Wallet injection: mock window.stellar or inject a pre-configured Keypair via page.evaluate.

Resolution Strategy

  • Use test.describe for logical grouping.
  • Prefer getByRole and getByText selectors over fragile CSS/XPath.
  • tests live in tests/e2e/ directory.
  • playwright.config.ts at project root.

Tags

e2e, testing, playwright, wallet

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions