feat: headless smoke tests for Nexus — zero LLM, pure Playwright #504

Merged
Timmy merged 1 commits from tests/smoke-suite into main 2026-03-25 13:24:21 +00:00
Owner

Summary

Adds automated smoke tests that verify the Nexus world renders and is interactive. No LLM required. Pure headless browser via Playwright.

Tests (17 total)

World Renders:

  • index.html loads without JS errors
  • Canvas element exists (Three.js rendered)
  • Canvas is not all black (scene has content)
  • WebGL context is healthy

Modules Load:

  • All ES modules resolve (no import errors)
  • Three.js loaded from CDN

HUD Elements:

  • Block height display, weather HUD, audio toggle, sovereignty message, oath overlay

Interactions:

  • Mouse movement updates camera (parallax)
  • Tab key toggles overview mode
  • Animation loop is running (20+ FPS)

Data Loading:

  • portals.json, sovereignty-status.json, style.css, manifest.json

Usage

./tests/run-smoke.sh              # Run all
./tests/run-smoke.sh --headed     # With visible browser
./tests/run-smoke.sh --grep HUD   # Specific group

Refs #445

## Summary Adds automated smoke tests that verify the Nexus world renders and is interactive. No LLM required. Pure headless browser via Playwright. ## Tests (17 total) **World Renders:** - index.html loads without JS errors - Canvas element exists (Three.js rendered) - Canvas is not all black (scene has content) - WebGL context is healthy **Modules Load:** - All ES modules resolve (no import errors) - Three.js loaded from CDN **HUD Elements:** - Block height display, weather HUD, audio toggle, sovereignty message, oath overlay **Interactions:** - Mouse movement updates camera (parallax) - Tab key toggles overview mode - Animation loop is running (20+ FPS) **Data Loading:** - portals.json, sovereignty-status.json, style.css, manifest.json ## Usage ```bash ./tests/run-smoke.sh # Run all ./tests/run-smoke.sh --headed # With visible browser ./tests/run-smoke.sh --grep HUD # Specific group ``` Refs #445
Timmy self-assigned this 2026-03-25 13:18:54 +00:00
Timmy added 1 commit 2026-03-25 13:18:55 +00:00
feat: add headless smoke tests for Nexus rendering and interaction
Some checks failed
CI / validate (pull_request) Failing after 5s
7ef1c55bc0
- Playwright-based, zero LLM dependency
- Tests: world renders, canvas exists, WebGL healthy, HUD elements,
  mouse interaction, Tab overview toggle, animation loop, data files
- run-smoke.sh for local execution
- Configurable NEXUS_URL for CI or local

Refs #445
Timmy merged commit b64699d625 into main 2026-03-25 13:24:21 +00:00
Sign in to join this conversation.