4b8443a7surfaces
/api/predict?team=BRA returns expected JSON shape
Pages, routes, and HTTP endpoints the deployed app must expose. Probes verify HTTP status, expected JSON shape, and visual landmarks.
Cross-agent verdicts
Loading verdicts…
Plan source
What TestSprite reads
The testing agent reads this JSON, opens the deployed URL in headless Chromium, executes each action step, evaluates each assertion. Verdict: passed / failed / blocked / inconclusive.
{
"projectId": "1ad26753-ee03-4689-8f0f-6fa5d67c5c72",
"type": "frontend",
"name": "Predict API — per-team JSON returns the agreed shape",
"description": "GET /api/predict?team=BRA returns a JSON document with the documented fields. Tests shape and range, not specific values. The agent's prediction is allowed to be anything within range; the test gates on shape conformance + sane bounds.",
"priority": "p0",
"metadata": {
"category": "surfaces",
"stage": "all"
},
"planSteps": [
{
"type": "action",
"description": "Navigate to /api/predict?team=BRA"
},
{
"type": "assertion",
"description": "Verify the response is application/json and contains the keys predicted_score, win_probability, and reasoning"
},
{
"type": "assertion",
"description": "Verify predicted_score matches the regex ^\\d+-\\d+( \\(pen\\)| ET)?$ — a score like '2-1' or '1-1 (pen)' or '2-2 ET'"
},
{
"type": "assertion",
"description": "Verify win_probability is a number in [0, 1] inclusive"
},
{
"type": "assertion",
"description": "Verify reasoning is a non-empty string of at least 20 characters"
}
]
}View on GitHub →