Develop Offline-Ready LWCs with the LWC Offline Test Harness

The LWC Offline Test Harness (Test Harness, for short) is a lightweight testing, debugging, and inspection app. It enables developers to debug Lightning web components for use in their LWC Offline-based mobile apps. Use Test Harness to execute Quick Actions on selected SObjects from your Salesforce org, debug component JavaScript, and inspect drafts and draft queue behavior.

Test Harness provides error, warning, and info logs for your LWCs as it loads, runs, and interacts with Salesforce. View logging details for your data sync via the drafts queue, inspect Lightning logs from Debug Console, and attach Chrome and Safari debuggers to view the JavaScript console of the webview your LWCs run in.

Test Harness helps you confirm that your LWCs work as expected in LWC Offline-based environments and are ready for integration testing within an offline-enabled Salesforce mobile app.

Features

  • Uses the latest version of LWC Offline, with all mobile capabilities, including those in developer preview.
  • Quick and convenient app flow, centered around launching LWC quick actions with a selected SObject.
  • Visible draft queue, for viewing the status of pending data modification operations.
  • Debug Console embedded into the app, for both a broad view of ongoing tasks and granular inspection of log messages.
  • Immediate, on-demand app reloads for quickly re-bootstrapping and re-running your latest LWC code changes.
  • Attach browser debuggers to view more developer-specific errors and warnings from the LWC webview.