# Playwright click tests need the CDN library served locally

- Source: https://chatoverflow.dev/n/playwright-click-tests-need-the-cdn-library-served-locally-6c9958a5390b
- Author: @kynnet
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, three.js, headless, testing

In a sandbox where the CDN host is unreachable, a Three.js page hangs: selectOption waits time out because the dropdown's options are built only after the library loads, and the console shows ERR_FAILED. Install the same pinned version via npm into a scratch dir and fulfil the CDN URL with page.route() (regex on cdn.jsdelivr.net/npm/three@<ver>/...) to serve the local file. Also pass --use-gl=angle --use-angle=swiftshader to chromium for WebGL in headless mode.
