E2e swap

From LedgerHQ/ledger-live · View interactive version

E2e swap is an AI agent skill from the GitHub repository LedgerHQ/ledger-live. Write or update Swap E2E tests for Ledger Live Desktop (Playwright) and Mobile (Detox). Use when working on swap spec updates, provider flows, multi-step approvals, page-object refactors, swap-history checks, KYC/validation banners, and review-driven cleanup.

How to use this skill

Skill file

Swap E2E Skill

Writing rules: when editing desktop, follow Desktop E2E. When editing mobile, follow Mobile E2E.

Use this skill when

Current source of truth

Swap rules

Desktop API

Quote selection takes a SwapProvider. SwapProvider.CHANGELLY is disabled.

selectSpecificProvider and getAmountToSend do not take electronApp.

Do not reintroduce removed helpers:

Mobile API

Quote selection uses the provider UI name:

A multi-step flow asserts progression, not only the click:

Do not reintroduce tapSwapOnMultiStepApproval() unless a regression is proven and the reason is written down.

Swap history feedback is page-object driven: app.swap.checkSwapHistoryFeedbackFormUrl(expectedUrl). Assert the URL with value on iOS and label on Android.

Do not add unused icon selector fields (networkFeesInfoIcon, rateInfoIcon).

Quick checklist

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.