Skip to content

Commit

Permalink
FIX: Flaky tests. Due to CSS transitions opacity might not be 0 yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed May 5, 2020
1 parent bae813f commit 2edee74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/javascripts/helpers/assertions.js
Expand Up @@ -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"
);
}

1 comment on commit 2edee74

@discoursereviewbot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Joffrey JAFFEUX posted:

I think I have seen another user card test failing after this commit, but it seems to have improved situation 👍

Please sign in to comment.