FIX: Flaky tests. Due to CSS transitions opacity might not be 0 yet.

This commit is contained in:
Robin Ward 2020-05-05 13:45:14 -04:00
parent bae813fac6
commit 2edee74718
1 changed files with 1 additions and 1 deletions

View File

@ -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"
);
}