From 81a0e18c7932f5cf3be3076e4adacd62a5792701 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Thu, 3 Mar 2022 20:20:38 +0100 Subject: [PATCH] :wrench: Tweak fuzzyness --- tests/run-test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/run-test.sh b/tests/run-test.sh index 0d35edc..9be173d 100755 --- a/tests/run-test.sh +++ b/tests/run-test.sh @@ -91,7 +91,7 @@ fail() { # script exits via the fail() method above. find_target() { echo "Looking for ${1} on the screen." - POS=$(do_in_pod find-target.sh "${1}") || true + POS=$(do_in_pod find-target.sh -f 0.02 "${1}") || true if [[ -z "${POS}" ]]; then fail "${2}" fi @@ -113,8 +113,10 @@ set_setting() { } # This opens the extensions preferences dialog and captures two images: One during the -# window-open animation, and one during the window-close animation. -# The images are then compared to reference images. +# window-open animation, and one during the window-close animation. For each capture, a +# reference image is searched. The sleeps are a bit excessive, but it's difficult to get +# consistent results with shorter sleeps. The animations are shown for five seconds, so +# we also have to make sure that one animation is finished before starting the next one. test_effect() { echo "Testing ${1} effect."