From 9ca8f90e9171ea9c128811a484875ddc86ee1385 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sun, 30 Aug 2026 16:07:16 -0400 Subject: [PATCH] Capture OCR screenshots at 2x scale MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tesseract routinely drops small caption text at native resolution — the weather panel's detail labels fail the WIND assertion with the text plainly on screen. Let the compositor upscale the capture instead. --- test/acceptance.d/base-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/acceptance.d/base-test.sh b/test/acceptance.d/base-test.sh index 717007c9..023223a1 100644 --- a/test/acceptance.d/base-test.sh +++ b/test/acceptance.d/base-test.sh @@ -36,7 +36,9 @@ screen_contains() { local text="$1" local snapshot="/tmp/omarchy-acceptance-ocr-$$.png" - if ! timeout 10 grim "$snapshot" 2>/dev/null; then + # Capture at 2x scale: tesseract routinely drops small caption text at + # native resolution (the weather panel's detail labels, for one). + if ! timeout 10 grim -s 2 "$snapshot" 2>/dev/null; then rm -f "$snapshot" return 1 fi