Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save paulanthonywilson/121518 to your computer and use it in GitHub Desktop.
Save paulanthonywilson/121518 to your computer and use it in GitHub Desktop.
Matcher for element visible - ScrewUnit / blue-ridge
Screw.Matchers["be_visible"] = {
match: function(expected, actual) {
return actual.css('display') != "none"
},
failure_message: function(expected, actual, not) {
return 'expected ' + $.print(actual) + (not ? ' not' : '') + ' to be visible';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment