Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion spec/spec-helper.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ addCustomMatchers = (spec) ->
element = @actual
element = element.get(0) if element.jquery
@message = -> return "Expected element '#{element}' or its descendants #{toOrNotTo} show."
element.style.display in ['block', 'inline-block', 'static', 'fixed']
computedStyle = getComputedStyle(element)
computedStyle.display isnt 'none' and computedStyle.visibility is 'visible' and not element.hidden

toEqualPath: (expected) ->
actualPath = path.normalize(@actual)
Expand Down