check_web: the country demo has exactly 7 shaded groups and 13 grazing animals

This commit is contained in:
grabowski committed 2026-10-25 13:59:46 +07:00
1 parent e840d36000
commit cddf834e56
1 file changed
+2 -1
+2 -1
View File
@@ -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")