From cddf834e56dc3d261d517ad5399540692c894dd7 Mon Sep 17 00:00:00 2001 From: grabowski Date: Sun, 25 Oct 2026 13:59:46 +0700 Subject: [PATCH] check_web: the country demo has exactly 7 shaded groups and 13 grazing animals --- tools/check_web.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/check_web.py b/tools/check_web.py index 7a7c13b..fc4b236 100644 --- a/tools/check_web.py +++ b/tools/check_web.py @@ -351,7 +351,8 @@ try: nc = len(doc(pg)["objects"]) beasts = pg.evaluate("() => new Set([...document.querySelectorAll('.iso-svg .iso-beast')].map(e => e.closest('[data-obj]')?.dataset.obj)).size") poses = pg.evaluate("() => document.querySelectorAll('.iso-svg .iso-pose2.iso-pose0').length") - check(title(pg) == "isokit country" and nc > 30 and beasts >= 8 and poses >= 12 and pg.evaluate("() => __studio.S.warnings.length") == 0, + # five herds (elephants, deer, boar, fox, rabbits) and two groups of rocks; 3 + 6 + 3 + 1 grazing + check(title(pg) == "isokit country" and nc > 30 and beasts == 7 and poses == 13 and pg.evaluate("() => __studio.S.warnings.length") == 0, f"Country demo opens the countryside ({nc} objects, {beasts} animal and rock groups, {poses} grazing animals, no warnings)") herd = pg.evaluate("() => Object.fromEntries((__studio.view.info('elephants') || {rows: []}).rows)['Herd'] || ''") rot = pg.evaluate("() => __studio.S.doc.objects.find(o => o.id === 'lane-d').rot")