What problem does it solve?
Running and debugging Earn end-to-end tests in the Ledger Live monorepo involves fragile setup: Speculos device emulation, feature-flag routing, stale Electron builds, and webview context switching. This Skill guides you through running the earn.v2 and delegate suites correctly and triaging failures by category.
Core Features & Use Cases
- Guided test execution: Confirms scope (earn.v2, delegate, desktop, mobile), verifies environment variables (MOCK, SEED, COINAPPS, SPECULOS_IMAGE_TAG), checks build freshness, then runs the correct Playwright or Detox commands.
- Failure triage taxonomy: Classifies failures as environment, build, or test-flow mismatch with concrete fixes, such as rebuilding .webpack for domcontentloaded timeouts or pinning the Speculos image tag.
- Page object maintenance: Documents current desktop and mobile Earn page objects, feature-flag model (EARN_V2_DESKTOP_FLAGS, FF_STAKE_PROGRAMS_MODAL), and webview resolution patterns for updating specs.
- Use Case: A developer's Earn E2E run fails with a Speculos argument error; the Skill identifies the stale cached Docker image and provides the exact pin-and-pull fix.
Quick Start
Ask the assistant to run the Earn v2 desktop E2E tests and triage any failures that come up.