diff --git a/src/lib/Behat/Helper/StudioUtility.php b/src/lib/Behat/Helper/StudioUtility.php index 922f2a4f24..dae84b5b61 100644 --- a/src/lib/Behat/Helper/StudioUtility.php +++ b/src/lib/Behat/Helper/StudioUtility.php @@ -82,7 +82,7 @@ public function clickVisibleWithPossibleOverlay(string $selector, int $position sleep(5); --$numberOfRetries; - if ($numberOfRetries > 0) { + if ($numberOfRetries < 0) { throw $e; }