Webapp validation
Install development dependencies in the project root and run:
npm ci
npm test
python3 -m unittest discover -s tests -p 'test_*.py'
For the full client browser test:
npx playwright install chromium
npm run test:browser
HEARD_BROWSER_PLATFORM=android npm run test:browser
The browser test loads the complete local web assets in their normal order. It uses a fake microphone, fake authenticated/visitor/shared sessions, and intercepted API responses. It checks saved configuration, song details, one sample through the recognition flow, Stop, absence of page errors/missing assets, and horizontal layout bounds at 320, 360, 390, 430, 768 and 1440 pixels. It never uses a real account or sends audio to a live service.
Use HEARDBROWSERSINGLE_PROCESS=1 in restricted Linux validation environments that require a single browser process. All browser packages and binaries are developer tools and are excluded from the source ZIP.
The standard tests cover remembered-account restoration, login/signup, revoked/expired sessions, iPhone/iPad/Android/macOS/Windows device behavior, shared-page privacy, themes, configuration, same-song grouping, browser interruption/reconnection, request timeout and cancellation, and background-music capture settings.
A passing emulation test does not certify physical iPhone/Safari audio or the deployed AWS services. After deployment, verify on the intended phone over HTTPS: sign in, allow the microphone, Start, open a song, stop, reopen settings and test a shared link. Mobile browsers can still suspend capture when locked or backgrounded.
The full browser test also changes sample duration and interval during recording with conversation assist enabled, verifies the original recording is not truncated, checks the next WAV duration and updated countdown, and confirms Sample now still works.
Raw JSON sharing (7.103)
The mobile browser smoke test checks that Raw JSON starts unchecked, generates an API JSON link with the share token when selected, and resets when reopened. Share history also fits the viewport at 320, 360, 390, 430, 768 and 1440 pixels. These shared controls are hosted in Windows WebView2 as well.
Run the real history-handler regression with mocked database transport using cd web-aws-source/infra && npm ci && npm run test:sharing. It checks custom and Last song selections, Latest three grouping, all-history pagination past 2,000 rows, stored time bounds, all privacy checkbox combinations, missing values, missing/revoked tokens and the unchanged page response.