Synpress overview

From cyotee/indexedex · View interactive version

Synpress overview is an AI agent skill from the GitHub repository cyotee/indexedex. This skill should be used when the user asks about "Synpress", "@synthetixio/synpress", Web3 E2E with MetaMask extension, or wallet-cache setup for Playwright/Cypress dApp tests.

How to use this skill

Skill file

IndexedEx precedence (2026-10-19)

Current IndexedEx CLAUDE.md, product/testing law and the existing injected-wallet

Playwright framework take precedence over generic examples below. Use

frontend/apps/indexedex, not the older apps/dtf layout. Connector stubs are

isolated UI tests only, never replacements for real contract/money-path checks.

MetaMask automation is not enabled for this repository. Read the local

IndexedEx context for actual network, reset, fixture,

secret and signing/broadcast authorization rules before applying an example.

Source-version caveat (2026-10-19): archived source has no pinned upstream

revision; Synpress v4 examples are reference-only and not installed or executed.

The original MIT metadata is retained, but no original license file was found;

provenance records that gap and all port adaptations.

Synpress Overview

Synpress is a Web3 E2E library built on Playwright (primary) and experimental Cypress. It automates real wallet extensions (MetaMask, Phantom) with one-time wallet setup caching for speed and parallel runs.

IndexedEx status

Synpress is an external, uninstalled reference alternative. The app already has Playwright and real injected-wallet fixtures and explicitly prohibits MetaMask automation. Do not install @latest, add a second runner, generate wallet caches or upgrade dependencies. A future separately authorized extension integration must verify pinned official APIs first.

Why Synpress

| Problem | Synpress approach |

|---------|-------------------|

| Playwright has no wallet | Controls MetaMask extension UI |

| Slow wallet onboarding every test | One-time setup + browser state cache |

| Flaky extension flows | Typed MetaMask API (connectToDapp, confirmTransaction, …) |

| Need real UX | Approvals, network switch, signature popups as users see them |

Architecture

defineWalletSetup  →  npx synpress wallet-setup  →  .cache-synpress/
        ↓
testWithSynpress(metaMaskFixtures(setup))
        ↓
Playwright tests with `metamask` fixture

Merits vs mock connector

Use Synpress when you need:

Use explicitly isolated UI connector stubs only when you need:

In IndexedEx use existing injection plus real contracts/RPC for required money paths. Isolated stubs are additive UI checks, not PR/release proof. Synpress remains a reference option, not an enabled nightly suite; real-wallet compatibility claims require an authorized real-wallet check.

Related skills

Official docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.