mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-09-07 15:07:17 +00:00
Adds two opt-in tests (build tag "browsertest", run via `make test-browser`) that drive a real headless Chrome instead of only asserting on the raw HTML/JS source: - TestPlayerRendersNatively confirms the shipped page still renders normally and never injects es-module-shims on a browser with native import map support. - TestPlayerRendersUnderForcedShimMode forces es-module-shims into its own shimMode (importmap-shim/module-shim, per the library's docs), routing the real app.js and vendored dependencies through the library's actual polyfill resolution. This exercises the old-Safari code path directly in CI/local headless Chrome, without needing physical iPadOS 15 hardware. Not wired into `test`/`check`/CI yet, since chromedp has not previously been exercised as part of this repo's test suite (only in the standalone doc-screenshot tool) and needs a Chrome/Chromium binary available to the runner. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>