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
- 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"
- Write dashboard integration tests:
- "should render the grid map canvas"
- "should display fleet grid with assets"
- "should filter fleet grid by status"
- 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
- 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
Scope
File:
tests/e2e/wallet.spec.tsProblem
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
playwright.config.tswith:baseURL: "http://localhost:3000"webServer: { command: "npm run dev", url: "http://localhost:3000" }retries: 1,workers: 1for CI stabilitywindow.stellaror inject a pre-configuredKeypairvia page.evaluate.Resolution Strategy
test.describefor logical grouping.getByRoleandgetByTextselectors over fragile CSS/XPath.tests/e2e/directory.playwright.config.tsat project root.Tags
e2e, testing, playwright, wallet