e2e

Automate ledger-live-desktop end-to-end tests with Playwright and Speculos.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a guided framework to create, modify, and validate end-to-end tests for ledger-live-desktop using Playwright and Speculos, enabling safer and faster release cycles.

Core Features & Use Cases

  • Guided E2E test creation: Step-by-step instructions to add new coin test coverage and configure test flows.
  • Test configuration & replay: Procedures to adjust test configs and troubleshoot failing runs across devices via Speculos.
  • Multi-device validation: Instructions to run tests on all supported device models (Nano S, Nano SP, Nano X, Stax, Flex, Nano Gen5) using Speculos.

Quick Start

Follow the Step-by-step guide to add a new coin E2E test, then rebuild dependencies and run tests across all device models.

Frequently Asked Questions about e2e

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

FAQPage Schema
How do I automate E2E tests for Ledger Live coins using Playwright?

Automate E2E tests for Ledger Live coins by using Playwright with the Speculos simulator to validate device interactions. You can create guided test flows, configure environments, and run tests across multiple supported device models for safer release cycles.

What environment variables do I need to run Speculos E2E tests for Ledger Live?

Running Speculos E2E tests requires setting COINAPPS, SEED, SPECULOS_IMAGE_TAG, and SPECULOS_DEVICE environment variables. You must also execute commands to rebuild dependencies before running the validation tests across targeted device models.

Can I validate Ledger Live E2E tests across multiple device models?

Yes, you can validate Ledger Live E2E tests across Nano S, Nano SP, Nano X, Stax, Flex, and Nano Gen5 device models. The framework uses Speculos to simulate interactions and apply test configurations to each supported device.

What's the best way to add new coin E2E test coverage in ledger-live-desktop?

The best way to add new coin E2E test coverage is following a guided step-by-step framework to create test flows in ledger-live-desktop. After writing tests with Playwright, rebuild dependencies and execute validations against the Speculos simulator.

How do I troubleshoot failing E2E test runs across Speculos devices?

Troubleshoot failing E2E test runs by adjusting test configurations and replaying the test procedures across Speculos simulated devices. Validate environment variables like SEED and SPECULOS_IMAGE_TAG, then rebuild dependencies to isolate configuration issues.

Why do my Playwright E2E tests fail after updating Speculos configurations?

Playwright E2E tests fail after Speculos configuration updates if dependencies are not rebuilt or environment variables like SPECULOS_DEVICE and SPECULOS_IMAGE_TAG are mismatched. Rebuild dependencies and verify test configs to resolve simulator interaction failures.