Test a Live App with Wallet-API

Learn how to run a basic automated test against a Live App using Wallet-API.

Goals

  • Configure the simulator
  • Automate tests that asserts UI behavior.

Prerequisites

This tutorial assumes that you already have your Live App using the Wallet-API package.

To start we’ll need at least:

  • To setup the simulator as shown in the documentation
  • And have a test environment in place like jest or vitest

Steps

Configure the simulator

  • Follow the simulator documentation.
  • Ensure your Live App can connect to the simulator during tests.

Prepare the test environment

  • Use an existing test runner (jest or vitest).
  • Confirm tests can launch your Live App in a controlled environment.

Write a basic test

  • Create a test file and assert a simple UI behavior (example below).

Automated testing

⚠️

Docs for this is under construction.

In order to test your Live App in an automated way, you will first need to create a test file.

Here is a simple example of a test file written for a Live App:

describe("List accounts", () => {
  test("It should show the list of accounts when clicking the button", () => {});
});
Ledger
Copyright © Ledger SAS. All rights reserved. Ledger, Ledger Stax, Ledger Nano S, Ledger Vault, Bolos are trademarks owned by Ledger SAS