Skip to content

test(axum-e2e): add content route tests for Docker output#8093

Merged
h0lybyte merged 1 commit intodevfrom
trunk/e2e-routes-1773654776
Mar 16, 2026
Merged

test(axum-e2e): add content route tests for Docker output#8093
h0lybyte merged 1 commit intodevfrom
trunk/e2e-routes-1773654776

Conversation

@h0lybyte
Copy link
Member

Summary

  • Add content-routes.spec.ts to axum-kbve-e2e with tests that run against the Docker container
  • Verify Starlight pages serve at correct nested paths (/itemdb/beer/, /mapdb/coal-vein/, /npcdb/glass-slime/, /questdb/auto-cooker-9000/)
  • Verify items are NOT served at root level (/beer/ -> 404) to catch slug-override regressions
  • Verify JSON API endpoints (/api/itemdb.json, /api/mapdb.json, /api/npcdb.json, /api/questdb.json) return valid data
  • Verify ref field is used instead of slug in API output

Test plan

  • Run nx run axum-kbve-e2e:e2e against a built Docker image
  • All content route tests pass (200 + HTML content type)
  • Root-level routes correctly 404
  • API JSON endpoints return expected structure

Verify Starlight pages are served at correct nested paths
(/itemdb/beer/, /mapdb/coal-vein/, etc.) and NOT at root level.
Also tests JSON API endpoints return valid data with ref field
instead of slug. Catches routing regressions like the slug-override bug.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 6d99c21 into dev Mar 16, 2026
4 checks passed
@h0lybyte h0lybyte deleted the trunk/e2e-routes-1773654776 branch March 16, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant