Skip to content

Commit e948fb8

Browse files
test: align every-asset galaxy guard assertions with live-limit check
1 parent ecb3b01 commit e948fb8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_graph_every_asset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ def test_ledger_routes_the_every_layout_and_restores_filters() -> None:
420420

421421
def test_ledger_keeps_authored_galaxy_scenes_on_the_hierarchical_engine() -> None:
422422
ledger = LEDGER.read_text(encoding="utf-8")
423-
assert "const galaxyQuality = fullGraph\n && data.nodes.some" in ledger
423+
assert "const galaxyQuality = fullGraph && galaxyWithinLiveLimit\n && data.nodes.some" in ledger
424+
assert "const galaxyWithinLiveLimit = data.nodes.length <= GRAPH_INITIAL_NODE_LIMIT" in ledger
424425
assert "candidateOverlay.setEnabled(galaxyQuality || graphIsGalaxy())" in ledger
425426
# The Every-node chip changes the toolbar preset before the complete scene arrives. Both
426427
# candidates must therefore be preloaded so a fast entry cannot select a missing Galaxy

0 commit comments

Comments
 (0)