Mock Wallet – Test Web3 Apps with Playwright, Humans, and AI Agents

5 hours ago

If you've tried to test a dApp with Playwright you already know the problem. MetaMask wasn't built for headless browsers. You end up with brittle hacks, flaky tests, and a CI pipeline that breaks randomly.

I built Mock Wallet to fix this — and then realized it solves something bigger.

Three things it does:

1. Playwright-native wallet testing Drop it into your test suite like any other mock. Simulate connects, signatures, and transactions without touching a browser extension. Works headless, works in CI, works reliably.

   // example
   const wallet = await MockWallet.connect(page);
   await wallet.approve({ amount: '1.5', token: 'ETH' });
   await expect(page.locator('.balance')).toHaveText('1.5 ETH');

2. AI agent wallet Agents get a programmable wallet via API. No UI, no popups, no human required. Your agent signs and transacts by calling an endpoint.

3. Human + agent hybrid flows The part nobody else handles — testing workflows where a human and an agent interact with the same contract. Approve flows, co-signing, agent-initiated + human-confirmed transactions.

Start in sandbox with mock funds. Flip a flag to go live.

mockwallet.dev — free sandbox, no signup to try.

Brutal feedback welcome especially from anyone doing E2E testing on Web3 apps.