From 2edee747187a5218f405f92ac2c955e725145198 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 5 May 2020 13:45:14 -0400 Subject: [PATCH] FIX: Flaky tests. Due to CSS transitions opacity might not be 0 yet. --- test/javascripts/helpers/assertions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/javascripts/helpers/assertions.js b/test/javascripts/helpers/assertions.js index 81fbd40b1b..241357251b 100644 --- a/test/javascripts/helpers/assertions.js +++ b/test/javascripts/helpers/assertions.js @@ -15,7 +15,7 @@ function invisible(selector) { const $items = find(selector + ":visible"); return ( $items.length === 0 || - $items.css("opacity") === "0" || + $items.css("opacity") !== "1" || $items.css("visibility") === "hidden" ); }