From bb2d22dbceb669db32fa7cc1d37cf1906b31f76f Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sat, 14 Nov 2026 09:10:09 -0800 Subject: [PATCH] fix(wildlife): the card test's click carries the exact top hit the layer now reads 4f24b9a06 made a wildlife tap read the click's exact top hit; the card test still handed only the touch search's id, so its clicks opened no card. --- src/ui/wildlifeSightingCard.test.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/wildlifeSightingCard.test.mjs b/src/ui/wildlifeSightingCard.test.mjs index 30c6cb3e0..588bbf701 100644 --- a/src/ui/wildlifeSightingCard.test.mjs +++ b/src/ui/wildlifeSightingCard.test.mjs @@ -217,7 +217,12 @@ function fixture( }), } : null; - onClick({ screenPosition: { x: 50, y: 50 }, id: picked }); + // What is exactly under the click, as the layer reads it. + onClick({ + screenPosition: { x: 50, y: 50 }, + topHit: { set: 'wildlife', id: picked }, + id: picked, + }); await settle(); }, async publish(next) {