fix: make full-bleed page metadata test non-vacuous

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MervinPraisonandClaude Opus 5.5 committed 2026-11-04 12:17:26 +00:00
1 parent 90d805f29e
commit 920cea4d98
1 file changed
+4 -5
+4 -5
View File
@@ -26,14 +26,13 @@ def _select_page_body() -> str:
def test_chat_pages_declare_full_bleed():
from starlette.testclient import TestClient
from praisonaiui.server import create_app
from praisonaiui.server import create_app, reset_state
reset_state() # isolate from page whitelists set by other tests
pages = {p["id"]: p for p in TestClient(create_app()).get("/api/pages").json()["pages"]}
for pid in ("chat", "chat-canvas"):
if pid in pages:
assert pages[pid].get("layout") == "full-bleed"
if "overview" in pages:
assert pages["overview"].get("layout") is None
assert pages[pid].get("layout") == "full-bleed"
assert pages["overview"].get("layout") is None
def test_select_page_toggles_fill_and_skips_header():