Newer Version Available
Develop Offline-Ready LWCs with the LWC Offline Test Harness
The LWC Offline Test Harness (Test Harness, for short) is a lightweight testing and
debugging app that enables developers to easily 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.
Test Harness provides error, warning, and info logs for your LWCs as it loads, runs, and interacts with Salesforce. You’ll get logging details for your data sync via the drafts queue, Lightning logs from Debug Console, and be able to attach Chrome and Safari debuggers to view the console logs of the webview your LWCs are running 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
- Quick and convenient app flow, centered around launching LWC Quick Actions with a selected SObject.
- Dedicated 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.
- Uses the latest version of LWC Offline.
- Can attach browser debuggers to view more developer-specific errors and warnings from the LWC webview.