mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
FIX: Flaky tests. Due to CSS transitions opacity might not be 0 yet.
This commit is contained in:
@ -15,7 +15,7 @@ function invisible(selector) {
|
|||||||
const $items = find(selector + ":visible");
|
const $items = find(selector + ":visible");
|
||||||
return (
|
return (
|
||||||
$items.length === 0 ||
|
$items.length === 0 ||
|
||||||
$items.css("opacity") === "0" ||
|
$items.css("opacity") !== "1" ||
|
||||||
$items.css("visibility") === "hidden"
|
$items.css("visibility") === "hidden"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user