From ada3f13a9ed29d123205568ffae82844305483c4 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 1 Oct 2026 13:53:31 +0100 Subject: [PATCH] test: guard rendered dashboard copy prompts --- tests/test_dashboard.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_dashboard.py b/tests/test_dashboard.py index dc5eab6b..e9c82b94 100644 --- a/tests/test_dashboard.py +++ b/tests/test_dashboard.py @@ -1788,3 +1788,13 @@ def test_state_fmt_without_verdict_is_grey(): doc = json.loads(dashboard.render(make_snapshot(), None, fmt="state", now=FRESH_NOW)) _assert_valid_state(doc) assert doc["status"] == "grey" + + +@pytest.mark.parametrize("verdict", ["green", "yellow", "red", "stale"]) +def test_rendered_copy_payloads_are_assistant_agnostic(verdict): + # theme() resolves the shared Brain board directory in local and CI layouts. + dashboard.theme() + from copy_contract import assert_portable_copy_payloads + page = dashboard.render(make_snapshot(), make_verdict(verdict), + fmt="html", now=FRESH_NOW) + assert_portable_copy_payloads(page)