e2e-mobile-add-or-update

Guides writing and updating Detox E2E tests for ledger-live-mobile.

615|491|Updated Jan 4, 2022
One-click install
npx skills add https://github.com/LedgerHQ/ledger-live --skill e2e-mobile-add-or-update
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-mobile-add-or-update
Source: https://github.com/LedgerHQ/ledger-live/tree/main/.agents/skills/e2e-mobile-add-or-update
Command: npx skills add https://github.com/LedgerHQ/ledger-live --skill e2e-mobile-add-or-update

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mobile end-to-end tests for ledger-live-mobile are hard to write consistently: page objects, drawers, and testIDs must follow shared conventions, and flaky tests erode trust in the suite. This Skill loads the team's Detox E2E authoring rules so new specs and refactors follow the established patterns.

Core Features & Use Cases

  • Spec authoring rules: Provides conventions for adding new Detox E2E specs to the mobile app.
  • Page object and drawer guidance: Covers creating or refactoring page objects and drawer helpers used by tests.
  • testID instrumentation: Explains how to add testIDs to product code for automation hooks.
  • Flaky test remediation: Directs how to diagnose and fix unstable mobile tests.
  • Use Case: When adding a new onboarding flow test, use this Skill to structure the spec, reuse existing page objects, and add the required testIDs without breaking existing conventions.

Quick Start

Ask the assistant to write a new Detox E2E spec for a ledger-live-mobile screen following the mobile e2e guidelines.

Frequently Asked Questions about e2e-mobile-add-or-update

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Detox E2E test for ledger-live-mobile?

Follow the conventions in the e2e/mobile documentation: create a spec file, reuse or extend existing page objects, and interact with elements via testIDs. This Skill loads those rules so new specs match the established structure.

How do I add testIDs to React Native code for Detox automation?

Add stable testID props to the interactive components your test needs to target, following the naming conventions in the mobile e2e guidelines. Avoid relying on visible text, which breaks with localization.

How do I fix a flaky Detox test on mobile?

Flaky Detox tests usually come from race conditions, missing synchronization waits, or unstable selectors. The Skill's guidelines cover using proper waits, stable testIDs, and page object abstractions to stabilize tests.

When should I create a new page object versus reuse an existing one?

Create a new page object when testing a screen or drawer that has no existing abstraction; otherwise extend the existing one. Reusing page objects keeps selectors centralized and reduces duplication across specs.

Does this apply to the Ledger Live desktop app?

No, these rules target ledger-live-mobile only, which uses Detox for E2E testing on Android and iOS. Desktop testing follows different tooling and conventions.