mirror of
https://github.com/MervinPraison/PraisonAIUI.git
synced 2026-11-07 05:56:17 -10:00
fix: make full-bleed page metadata test non-vacuous
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
90d805f29e
commit
920cea4d98
1 file changed
+4
-5
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user