Corrections of study fields; operator flow on ISSSTELEON's test source (SQL Server, two tables of PDFs)

This commit is contained in:
Roberto Treviño
2026-11-27 01:45:16 -06:00
parent 7dbb4b75fc
commit 9c89c9e10d
3 changed files with 113 additions and 78 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
"""Phase 3 and 4 gate, the WebApp: every page loads from the new API. The platform runs as
in production (API, Dagster), loaded with the synthetic CaCu and CaMa hospitals (CaMa's
models trained, none promoted) and the messy site; Playwright drives the real pages against
it (WebApp/e2e)."""
models trained, none promoted) and ISSSTELEON's test source; Playwright drives the real
pages against it (WebApp/e2e)."""
import json
import os
@@ -20,7 +20,7 @@ PIPELINES = ROOT / "tests" / "fixtures" / "pipelines"
@pytest.mark.webapp
@pytest.mark.parametrize("platform", ["sqlite"], indirect=True) # pages read one API either way
def test_every_page_loads_from_the_api(api, platform, messy_site):
def test_every_page_loads_from_the_api(api, platform, site):
for domain in ("cacu", "cama"):
drawn = (PIPELINES / f"hospital_{domain}.json").read_text()
put_concept_map(api, f"hospital_{domain}")
@@ -29,8 +29,8 @@ def test_every_page_loads_from_the_api(api, platform, messy_site):
run(api, domain)
# A trained CaMa version, unpromoted: what the governance page shows and refuses.
wait_for(api, ok(api.post("/models/cama/train", json={"as_of": "2026-11-24"}))["run_id"])
put_concept_map(api, "messy_site")
ok(api.put("/ingest/pipelines/site", json=json.loads(messy_site.drawn)))
put_concept_map(api, "erick_site")
ok(api.put("/ingest/pipelines/site", json=json.loads(site.drawn)))
run(api, "site")
subprocess.run(["npx", "playwright", "test"], cwd=ROOT / "WebApp", check=True,
env={**os.environ, "API_URL": str(api.base_url).rstrip("/")}) # fmt: skip