
This document outlines the process of using Lambda Test Tunnel to securely connect Playwright tests with internal API endpoints. By establishing a tunnel, we enable testing of applications or APIs that are not accessible to the public. This guide will walk you through each step of the process to ensure a successful setup and execution.
Start by initializing the Lambda Test Tunnel. This tool establishes a secure connection between your local machine and the cloud-based browser or device.

The tunnel configuration allows for testing of applications or API endpoints that are not publicly accessible. In this setup, activate the tunnel by setting it to true. Once activated, Lambda Test will provide the proxy host and proxy port values.

Within the pre-steps of the YAML file, print out these proxy values. Refer to the test case to see how the proxy host and proxy port are utilized for routing API calls through the tunnel. The Lambda Test dashboard will display the correct proxy host and proxy port under the Pre-steps section.

Upon reviewing the specific test execution, observe that the test case has passed successfully. This demonstrates that the internal API test, which would normally be inaccessible from outside the network, is reachable via the tunnel proxy configuration.

This process exemplifies the effective use of Lambda Test Tunnel with Playwright to securely test internal APIs.
