/defi-ui-testing:defi-ui-testing-overviewfrom defi-ui-testing
This skill should be used when planning or implementing DeFi UI E2E tests — choosing between Wagmi mock connector vs Synpress MetaMask, stack layout with Anvil, and test strategy for dApps.
Ships in defi-ui-testing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Test full user journeys against a local chain so runs are idempotent, free, and forkable. Two first-class methods:
| Method A — Mock connector | Method B — Synpress + MetaMask | |
|---|---|---|
| Stack | Playwright + Wagmi mock + Anvil + Viem | Playwright + Synpress + MetaMask + Anvil/Hardhat |
| Wallet | In-app mock connector / window._setupAccount | Real extension |
| Speed | Fast | Medium (cache helps) |
| Fidelity | App + chain logic | App + chain + wallet UX |
| Flake risk | Low | Medium (extension UI) |
| Best for | PR CI, pure product logic | Release, wallet integration QA |
| Inspiration | rombrom.com — Playwright/Anvil/Wagmi | Coinmonks — Synpress/Playwright/Anvil |
Support both. They optimize different risks.
┌─────────────────────────────────────────┐
│ Playwright test runner │
├──────────────────┬──────────────────────┤
│ Method A │ Method B │
│ Wagmi mock │ Synpress + MetaMask │
├──────────────────┴──────────────────────┤
│ dApp UI (React/Next/Remix + wagmi/viem)│
├─────────────────────────────────────────┤
│ Anvil (or Hardhat node) local RPC │
│ optional: mainnet fork │
└─────────────────────────────────────────┘
apps/web/ # dApp
tests/
e2e-mock/ # Method A
e2e-synpress/ # Method B
fixtures/ # anvil, date, shared helpers
wallet-setup/ # Synpress defineWalletSetup
playwright.config.ts # or two configs
# App
pnpm add viem wagmi @tanstack/react-query
# Method A
pnpm add -D @playwright/test
npx playwright install chromium
# Method B
pnpm add -D @synthetixio/synpress
# Chain
# foundryup → anvil
defi-ui-mock-connector — Method A deep divedefi-ui-synpress-metamask — Method B deep divedefi-ui-anvil-fixtures — snapshots, time travel, multi-accountdefi-ui-test-patterns — lending/swap/liquidation scenariosplaywright, synpress, metamask, wagmi, foundry (anvil-node)
What SKILL.md sets; muted values are Claude Code's defaults
defi-ui-testing@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin defi-ui-testing5 skills in this plugin
/defi-ui-anvil-fixturesThis skill should be used when building Anvil-backed Playwright fixtures for DeFi UI tests — snapshots, time travel, mining, impersonation, and multi-account chain helpers./defi-ui-mock-connectorThis skill should be used when implementing DeFi UI E2E with Playwright, Anvil, and Wagmi mock connector — window._setupAccount, fixtures, error features, without MetaMask extension./defi-ui-synpress-metamaskThis skill should be used when implementing DeFi UI E2E with Synpress, Playwright, MetaMask, and Hardhat/Anvil — wallet setup cache, connect, approve, deposit/borrow/liquidate flows.Other plugins' skills for the same job