test(live-state): assert stale server's map is not rendered in the badge
Closes the negative-assertion gap from the Task 10 review: without this check, a regression that drops the freshness guard would still pass the positive 2/4 + c1m2_streets assertions. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
072d9f78e7
commit
b00a3cceea
1 changed files with 2 additions and 0 deletions
|
|
@ -506,6 +506,8 @@ def test_servers_index_renders_live_state_badge(user_client_with_blueprints) ->
|
||||||
html = res.get_data(as_text=True)
|
html = res.get_data(as_text=True)
|
||||||
assert "2/4" in html
|
assert "2/4" in html
|
||||||
assert "c1m2_streets" in html
|
assert "c1m2_streets" in html
|
||||||
|
# Stale server's map MUST NOT render — fresh badge condition must guard it.
|
||||||
|
assert "c1m1_hotel" not in html
|
||||||
|
|
||||||
|
|
||||||
def test_reset_operation_enqueues_job_and_stops_desired_state(user_client_with_blueprints) -> None:
|
def test_reset_operation_enqueues_job_and_stops_desired_state(user_client_with_blueprints) -> None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue