End-to-end headless smoke test: register -> login -> fetch worlds

Tester had already written a complete, correct test (4/4 steps pass
against a real backend) but stalled investigating DB/migration setup
after its own verification run silently exited with no result -- the
task spec's suggested invocation included --quit, which kills a --script
SceneTree test before its awaited HTTP calls finish (same Godot
--script-mode gotcha documented elsewhere this session).

Renamed smoke_test.gd -> smoke_test_e2e.gd: the task spec named it
without the checkpoint runner's expected smoke_test_*.gd suffix, so
scripts/run_checkpoint_tests.py's glob would have silently never picked
it up. Also fixed the --quit flag in the file's own usage comments.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-19 23:30:52 +00:00
parent e2e771d2f8
commit fcfb767c49
@@ -2,7 +2,7 @@ extends SceneTree
## End-to-end headless smoke test: register -> login -> fetch worlds list. ## End-to-end headless smoke test: register -> login -> fetch worlds list.
## ##
## Run with: ## Run with:
## godot --headless --path . --quit --script res://scripts/smoke_test.gd ## godot --headless --path . --script res://scripts/smoke_test_e2e.gd
## ##
## Requires the backend to be running (default base URL ## Requires the backend to be running (default base URL
## `application/agp/api_base_url` -> http://127.0.0.1:8000, overridable via ## `application/agp/api_base_url` -> http://127.0.0.1:8000, overridable via
@@ -63,7 +63,7 @@ func _run() -> void:
printerr("\nERROR: Backend is not reachable at the configured base URL.") printerr("\nERROR: Backend is not reachable at the configured base URL.")
printerr(" detail: %s" % health.detail) printerr(" detail: %s" % health.detail)
printerr(" Start the backend first (see backend/README), then re-run:") printerr(" Start the backend first (see backend/README), then re-run:")
printerr(" godot --headless --path . --quit --script res://scripts/smoke_test.gd") printerr(" godot --headless --path . --script res://scripts/smoke_test_e2e.gd")
_summarize(results) _summarize(results)
quit(1) quit(1)
return return